@everfur/sdk 0.21.0 → 0.22.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 +150 -0
- package/dist/{Chat.d-JDtlG_EW.d.cts → Chat.d-DDmNIlJn.d.cts} +1 -1
- package/dist/{Chat.d-CoGJrK3t.d.ts → Chat.d-DySDBc6L.d.ts} +1 -1
- package/dist/{DepthViews.d-XTv4s3ru.d.cts → DepthViews.d-BHb0Xb-C.d.cts} +1 -1
- package/dist/{DepthViews.d-CNQn-eEr.d.ts → DepthViews.d-BIfqdrvX.d.ts} +1 -1
- package/dist/{DepthViews.d-D31VlFKU.d.ts → DepthViews.d-BW3HrhnC.d.ts} +1 -1
- package/dist/{DepthViews.d-zxM_xbP9.d.cts → DepthViews.d-Dq8eWBvw.d.cts} +1 -1
- package/dist/{RecordsPage.d-D_y-ZB3S.d.ts → RecordsPage.d-Bs-dghTH.d.ts} +1 -1
- package/dist/{RecordsPage.d-CSZHrtWJ.d.cts → RecordsPage.d-CLrw-AvZ.d.cts} +1 -1
- package/dist/animations/index.cjs +2 -2
- package/dist/animations/index.d.cts +3 -3
- package/dist/animations/index.d.ts +3 -3
- package/dist/animations/index.js +2 -2
- package/dist/{attachments.d-D74wbmQU.d.cts → attachments.d-DTGYmW8Y.d.cts} +1 -1
- package/dist/{attachments.d-Dm6NUJTR.d.ts → attachments.d-DjxmIsNp.d.ts} +1 -1
- package/dist/{bookingCopy.d-DMmLKY5Q.d.ts → bookingCopy.d-CX-DMiwi.d.ts} +148 -148
- package/dist/{bookingCopy.d-iaYDPvPd.d.cts → bookingCopy.d-D952V8Tq.d.cts} +148 -148
- package/dist/{branding.d-DpNGEdDL.d.ts → branding.d-DC4imCYd.d.ts} +72 -4
- package/dist/{branding.d-BFauULV6.d.cts → branding.d-G7rpxDhI.d.cts} +72 -4
- package/dist/{casesRepository.d-CCJJQXnl.d.ts → casesRepository.d-CnJZlUZ4.d.ts} +1 -1
- package/dist/{casesRepository.d-G2dahIKO.d.cts → casesRepository.d-bWJHZD-_.d.cts} +1 -1
- package/dist/chat/index.cjs +59 -47
- package/dist/chat/index.d.cts +11 -11
- package/dist/chat/index.d.ts +11 -11
- package/dist/chat/index.js +59 -47
- package/dist/chat/lite/index.cjs +59 -47
- package/dist/chat/lite/index.d.cts +11 -11
- package/dist/chat/lite/index.d.ts +11 -11
- package/dist/chat/lite/index.js +59 -47
- package/dist/{chatHandoffToken.d-DVv9tl8h.d.ts → chatHandoffToken.d-BCEdhZpd.d.ts} +5 -5
- package/dist/{chatHandoffToken.d-xmnHrTA5.d.cts → chatHandoffToken.d-uKnSnIzN.d.cts} +5 -5
- package/dist/{chatTypes.d-CQC7GTdE.d.cts → chatTypes.d-CFyYBzps.d.cts} +4 -4
- package/dist/{chatTypes.d-hS1AilYl.d.ts → chatTypes.d-DbdF3ij5.d.ts} +4 -4
- package/dist/chunk-AT7SU763.js +14 -0
- package/dist/{chunk-2NA7TPUA.js → chunk-FFMIX6HG.js} +1 -1
- package/dist/chunk-K5NVMNI5.js +47 -0
- package/dist/chunk-ZASVU7CH.js +34 -0
- package/dist/client/index.cjs +9 -8
- package/dist/client/index.d.cts +18 -12
- package/dist/client/index.d.ts +18 -12
- package/dist/client/index.js +9 -8
- package/dist/{clinicBatch.d-BpP2NBb3.d.ts → clinicBatch.d-C_kZtYt-.d.ts} +2 -2
- package/dist/{clinicBatch.d-4PFwKJfw.d.cts → clinicBatch.d-e3Cn5HhA.d.cts} +2 -2
- package/dist/{config.d-D9igq-vT.d.ts → config.d--6siaeNg.d.ts} +14 -6
- package/dist/{config.d-cX5E6DAw.d.cts → config.d-Ba21AaZg.d.cts} +14 -6
- package/dist/consent/index.cjs +2 -2
- package/dist/consent/index.d.cts +5 -5
- package/dist/consent/index.d.ts +5 -5
- package/dist/consent/index.js +2 -2
- package/dist/{context.d-BrRRNw9I.d.cts → context.d-DLHTf-fV.d.cts} +7 -7
- package/dist/{context.d-hPfsEsNf.d.ts → context.d-TArU_9lj.d.ts} +7 -7
- package/dist/{copy.d-CDlirTR4.d.ts → copy.d-GokMma80.d.ts} +2 -2
- package/dist/{copy.d-DWjSkbrZ.d.cts → copy.d-zWWCn3wB.d.cts} +2 -2
- package/dist/core/index.cjs +4 -4
- package/dist/core/index.d.cts +17 -17
- package/dist/core/index.d.ts +17 -17
- package/dist/core/index.js +4 -4
- package/dist/{depth.d-CfBorxcQ.d.ts → depth.d-C_HL8yAz.d.ts} +2 -2
- package/dist/{depth.d-KkrGx98U.d.cts → depth.d-De5pT7vA.d.cts} +2 -2
- package/dist/{entitlementRepository.d-DpQrIgW6.d.ts → entitlementRepository.d-CoKN-Ksa.d.ts} +3 -3
- package/dist/{entitlementRepository.d-BvnWpcQH.d.cts → entitlementRepository.d-Tj7lvs4e.d.cts} +3 -3
- package/dist/{focus.d-CYwVLDvR.d.ts → focus.d-7G0BBmA9.d.ts} +3 -128
- package/dist/{focus.d-9loikWy8.d.cts → focus.d-B0qweva0.d.cts} +3 -128
- package/dist/health-plan/index.cjs +133 -92
- package/dist/health-plan/index.d.cts +33 -18
- package/dist/health-plan/index.d.ts +33 -18
- package/dist/health-plan/index.js +141 -100
- package/dist/healthPlanRepository.d-CdCyUWph.d.ts +131 -0
- package/dist/healthPlanRepository.d-fPbLceBr.d.cts +131 -0
- package/dist/{idempotency.d-DGQ_xML5.d.ts → idempotency.d-CoUlC-Yd.d.ts} +1 -1
- package/dist/{idempotency.d-CVKkUhY4.d.cts → idempotency.d-IDta7Jjj.d.cts} +1 -1
- package/dist/{identity.d-DR5YwO6E.d.ts → identity.d-B7dPRGqm.d.ts} +1 -1
- package/dist/{identity.d-Bnl5Z0MM.d.cts → identity.d-_MK9Y7a4.d.cts} +1 -1
- package/dist/inbox.d-ChNXTovj.d.cts +103 -0
- package/dist/inbox.d-CuuPTWyW.d.ts +103 -0
- package/dist/index.cjs +69 -56
- package/dist/index.d.cts +18 -18
- package/dist/index.d.ts +18 -18
- package/dist/index.js +69 -56
- package/dist/{introEvents.d-D_yL7lnE.d.ts → introEvents.d-D6Ay0ORN.d.ts} +1 -1
- package/dist/{introEvents.d-JmPqEqMQ.d.cts → introEvents.d-JvAWRKYu.d.cts} +1 -1
- package/dist/{usePresentation.d-CrobH0d_.d.cts → layout.d-ByfOEhpG.d.cts} +2 -136
- package/dist/{usePresentation.d-CDNK4MDY.d.ts → layout.d-D3d4QMeO.d.ts} +2 -136
- package/dist/notifications/inbox/index.cjs +24 -12
- package/dist/notifications/inbox/index.d.cts +87 -6
- package/dist/notifications/inbox/index.d.ts +87 -6
- package/dist/notifications/inbox/index.js +24 -12
- package/dist/notifications/index.d.cts +7 -7
- package/dist/notifications/index.d.ts +7 -7
- package/dist/{optInView.d-CZvKlq-o.d.ts → optInView.d-BpFTJaaX.d.ts} +2 -2
- package/dist/{optInView.d-BizcW_QG.d.cts → optInView.d-Bxvg0WLJ.d.cts} +2 -2
- package/dist/{pets.d-uCzgFbGi.d.ts → pets.d-Br960ekh.d.ts} +1 -1
- package/dist/{pets.d-C4CWxQPh.d.cts → pets.d-BtbJcf8T.d.cts} +1 -1
- package/dist/{petsRepository.d-DOcVv9bd.d.cts → petsRepository.d-Bj9rPnCr.d.cts} +1 -1
- package/dist/{petsRepository.d-DRW7NkKm.d.ts → petsRepository.d-CSOth5XE.d.ts} +1 -1
- package/dist/photo/index.cjs +1 -1
- package/dist/photo/index.js +1 -1
- package/dist/{presentation.d-Bs8xQ4gD.d.cts → presentation.d-BvZs_jN-.d.cts} +6 -0
- package/dist/{presentation.d-Bs8xQ4gD.d.ts → presentation.d-BvZs_jN-.d.ts} +6 -0
- package/dist/records/depth/index.cjs +10 -6
- package/dist/records/depth/index.d.cts +9 -9
- package/dist/records/depth/index.d.ts +9 -9
- package/dist/records/depth/index.js +10 -6
- package/dist/records/index.cjs +302 -207
- package/dist/records/index.d.cts +144 -17
- package/dist/records/index.d.ts +144 -17
- package/dist/records/index.js +302 -207
- package/dist/{requestFunnel.d-CQ0O8fMG.d.cts → requestFunnel.d-BwO-jFLX.d.cts} +2 -2
- package/dist/{requestFunnel.d-BYLycQMI.d.ts → requestFunnel.d-LSnmCusf.d.ts} +2 -2
- package/dist/{route.d-DFJ0gXj8.d.ts → route.d-Bzyamuxa.d.ts} +2 -2
- package/dist/{route.d-q9yndhFy.d.cts → route.d-D70-OHBc.d.cts} +2 -2
- package/dist/{runtimeTypes.d-3LRuzxr7.d.cts → runtimeTypes.d-BHdN-9aB.d.cts} +7 -7
- package/dist/{runtimeTypes.d-BJHYj2MI.d.ts → runtimeTypes.d-L_CbeCKS.d.ts} +7 -7
- package/dist/{screenProps.d-DfAmuKkr.d.cts → screenProps.d-DB5IMaGZ.d.cts} +1 -1
- package/dist/{screenProps.d-tVzlXGaN.d.ts → screenProps.d-HGSPNGHt.d.ts} +1 -1
- package/dist/server/events/index.cjs +1 -1
- package/dist/server/events/index.d.cts +2 -2
- package/dist/server/events/index.d.ts +2 -2
- package/dist/server/events/index.js +1 -1
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.d.cts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +1 -1
- package/dist/shop/index.cjs +26 -13
- package/dist/shop/index.d.cts +3 -3
- package/dist/shop/index.d.ts +3 -3
- package/dist/shop/index.js +26 -13
- package/dist/slots/index.cjs +299 -0
- package/dist/slots/index.d.cts +155 -0
- package/dist/slots/index.d.ts +155 -0
- package/dist/slots/index.js +299 -0
- package/dist/slots/weather-glyphs/index.cjs +2 -0
- package/dist/slots/weather-glyphs/index.d.cts +11 -0
- package/dist/slots/weather-glyphs/index.d.ts +11 -0
- package/dist/slots/weather-glyphs/index.js +2 -0
- package/dist/tabs/index.cjs +43 -12
- package/dist/tabs/index.d.cts +79 -8
- package/dist/tabs/index.d.ts +79 -8
- package/dist/tabs/index.js +43 -12
- package/dist/televet/booking/index.cjs +54 -10
- package/dist/televet/booking/index.d.cts +51 -10
- package/dist/televet/booking/index.d.ts +51 -10
- package/dist/televet/booking/index.js +55 -11
- package/dist/televet/call/index.cjs +1 -1
- package/dist/televet/call/index.js +1 -1
- package/dist/televet/index.cjs +1 -1
- package/dist/televet/index.d.cts +2 -2
- package/dist/televet/index.d.ts +2 -2
- package/dist/televet/index.js +1 -1
- package/dist/testing/index.d.cts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/rn/index.cjs +1 -1
- package/dist/testing/rn/index.d.cts +13 -11
- package/dist/testing/rn/index.d.ts +13 -11
- package/dist/testing/rn/index.js +1 -1
- package/dist/testing/web/index.d.cts +10 -10
- package/dist/testing/web/index.d.ts +10 -10
- package/dist/texting/index.cjs +2 -2
- package/dist/texting/index.d.cts +5 -5
- package/dist/texting/index.d.ts +5 -5
- package/dist/texting/index.js +2 -2
- package/dist/{threadOptions.d-I6G3BdlP.d.cts → threadOptions.d-CS-Qu_rR.d.cts} +6 -6
- package/dist/{threadOptions.d-DfH26dy7.d.ts → threadOptions.d-FzFN0zsK.d.ts} +6 -6
- package/dist/{timelineRows.d-uSfr2IP3.d.cts → timelineRows.d-BJRCgmdv.d.cts} +1 -1
- package/dist/{timelineRows.d-CugnCOfZ.d.ts → timelineRows.d-CPS4admm.d.ts} +1 -1
- package/dist/{tokens.d-BUVqme2D.d.cts → tokens.d-DH1mYjZl.d.cts} +43 -1
- package/dist/{tokens.d-BUVqme2D.d.ts → tokens.d-DH1mYjZl.d.ts} +43 -1
- package/dist/{typeStyle.d-Ckdh_S-t.d.cts → typeStyle.d-BIDpuYpg.d.cts} +29 -3
- package/dist/{typeStyle.d-B9Jo5mDX.d.ts → typeStyle.d-aRhFhBpG.d.ts} +29 -3
- package/dist/ui/index.cjs +26 -13
- package/dist/ui/index.js +26 -13
- package/dist/{useHealthPlanSubscription.d-CVVQIFpG.d.ts → useHealthPlanSubscription.d-SQfx-45x.d.ts} +3 -2
- package/dist/{useHealthPlanSubscription.d-DylPMm_m.d.cts → useHealthPlanSubscription.d-zjsvvlhz.d.cts} +3 -2
- package/dist/useInboxUnread.d-7p3IWs_A.d.cts +109 -0
- package/dist/useInboxUnread.d-BxFKFU4o.d.ts +109 -0
- package/dist/usePresentation.d-BHO_uZ31.d.cts +140 -0
- package/dist/usePresentation.d-Dr7iD-4Y.d.ts +140 -0
- package/dist/{useRecordsDepth.d-BvBYIPii.d.ts → useRecordsDepth.d-BinUa8W9.d.ts} +1 -1
- package/dist/{useRecordsDepth.d-Cd5Vyb7D.d.cts → useRecordsDepth.d-Bk8BSerZ.d.cts} +1 -1
- package/dist/{useUnread.d-ElAEfgl1.d.ts → useUnread.d-CAeYh82_.d.ts} +10 -7
- package/dist/{useUnread.d-B4Yqcteg.d.cts → useUnread.d-DXcRBQw8.d.cts} +10 -7
- package/dist/video/index.cjs +1 -1
- package/dist/video/index.js +1 -1
- package/dist/{view.d-2RWoY9kd.d.ts → view.d-CaH6dZPJ.d.ts} +3 -3
- package/dist/{view.d-utmOR2ee.d.cts → view.d-DV4b1cov.d.cts} +3 -3
- package/dist/web/consent/index.cjs +1 -1
- package/dist/web/consent/index.d.cts +5 -5
- package/dist/web/consent/index.d.ts +5 -5
- package/dist/web/consent/index.js +1 -1
- package/dist/web/health-plan/index.cjs +15 -13
- package/dist/web/health-plan/index.d.cts +20 -13
- package/dist/web/health-plan/index.d.ts +20 -13
- package/dist/web/health-plan/index.js +7 -7
- package/dist/web/health-plan/styles.css +6 -2
- package/dist/web/inbox/index.cjs +1 -1
- package/dist/web/inbox/index.d.cts +7 -5
- package/dist/web/inbox/index.d.ts +7 -5
- package/dist/web/inbox/index.js +1 -1
- package/dist/web/index.cjs +71 -70
- package/dist/web/index.d.cts +53 -31
- package/dist/web/index.d.ts +53 -31
- package/dist/web/index.js +28 -27
- package/dist/web/intro/index.cjs +1 -1
- package/dist/web/intro/index.d.cts +7 -6
- package/dist/web/intro/index.d.ts +7 -6
- package/dist/web/intro/index.js +1 -1
- package/dist/web/notifications/index.cjs +1 -1
- package/dist/web/notifications/index.d.cts +6 -6
- package/dist/web/notifications/index.d.ts +6 -6
- package/dist/web/notifications/index.js +1 -1
- package/dist/web/records/depth/index.cjs +1 -1
- package/dist/web/records/depth/index.d.cts +9 -9
- package/dist/web/records/depth/index.d.ts +9 -9
- package/dist/web/records/depth/index.js +1 -1
- package/dist/web/records/index.cjs +1 -1
- package/dist/web/records/index.d.cts +11 -11
- package/dist/web/records/index.d.ts +11 -11
- package/dist/web/records/index.js +1 -1
- package/dist/web/records-sheet/index.cjs +3 -3
- package/dist/web/records-sheet/index.js +3 -3
- package/dist/web/shop/index.cjs +27 -8
- package/dist/web/shop/index.d.cts +4 -3
- package/dist/web/shop/index.d.ts +4 -3
- package/dist/web/shop/index.js +3 -3
- package/dist/web/televet/booking/index.cjs +53 -53
- package/dist/web/televet/booking/index.d.cts +44 -44
- package/dist/web/televet/booking/index.d.ts +44 -44
- package/dist/web/televet/booking/index.js +53 -53
- package/dist/web/televet/call/index.cjs +3 -3
- package/dist/web/televet/call/index.d.cts +7 -6
- package/dist/web/televet/call/index.d.ts +7 -6
- package/dist/web/televet/call/index.js +3 -3
- package/dist/web/televet/index.cjs +1 -1
- package/dist/web/televet/index.js +1 -1
- package/dist/web/texting/index.cjs +1 -1
- package/dist/web/texting/index.d.cts +5 -5
- package/dist/web/texting/index.d.ts +5 -5
- package/dist/web/texting/index.js +1 -1
- package/dist/web/ui/index.cjs +29 -10
- package/dist/web/ui/index.d.cts +32 -32
- package/dist/web/ui/index.d.ts +32 -32
- package/dist/web/ui/index.js +2 -2
- package/dist/web/ui/styles.css +46 -3
- package/package.json +36 -5
- package/slots/package.json +8 -0
- package/slots/weather-glyphs/package.json +8 -0
- package/dist/chunk-IJU5TV5N.js +0 -12
- package/dist/chunk-TFX6WMDN.js +0 -30
- package/dist/chunk-WZNPR5TY.js +0 -34
- package/dist/useInboxUnread.d-DDoSII8D.d.ts +0 -206
- package/dist/useInboxUnread.d-Dq3CCAa3.d.cts +0 -206
- package/dist/{IntakeMedia.d-Dqc5V_YH.d.cts → IntakeMedia.d-CO8weVGO.d.cts} +35 -35
- package/dist/{IntakeMedia.d-DNUAks9E.d.ts → IntakeMedia.d-DnUZJsbj.d.ts} +35 -35
package/dist/{useHealthPlanSubscription.d-CVVQIFpG.d.ts → useHealthPlanSubscription.d-SQfx-45x.d.ts}
RENAMED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
|
|
2
|
-
import { f as HealthPlanFocusIcon, m as HealthPlanFocusPrices, c as HealthPlanFocusDesign,
|
|
2
|
+
import { f as HealthPlanFocusIcon, m as HealthPlanFocusPrices, c as HealthPlanFocusDesign, n as HealthPlanFocusExtra, o as HealthPlanFocusWait, j as HealthPlanPageRepository, H as HealthPlanPage, i as HealthPlanSubscriptionRepository, p as HealthPlanSubscriptionQuote, g as HealthPlanSubscription, h as HealthPlanOneBoxOrder } from './focus.d-7G0BBmA9.js';
|
|
3
|
+
import { H as HealthPlanItem, a as HealthPlan, b as HealthPlanRepository } from './healthPlanRepository.d-CdCyUWph.js';
|
|
3
4
|
import { ReactNode } from 'react';
|
|
4
5
|
import { P as PetRef } from './ids.d-B2GAAifq.js';
|
|
5
|
-
import {
|
|
6
|
+
import { b as HealthPlanCart } from './layout.d-D3d4QMeO.js';
|
|
6
7
|
import { E as EverfurError } from './EverfurError.d-8NHtlgzA.js';
|
|
7
8
|
import { L as LifecyclePort } from './LifecyclePort.d-Cr1p33a7.js';
|
|
8
9
|
import { E as EverfurResult } from './EverfurResult.d-D_-254ZY.js';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
|
|
2
|
-
import { f as HealthPlanFocusIcon, m as HealthPlanFocusPrices, c as HealthPlanFocusDesign,
|
|
2
|
+
import { f as HealthPlanFocusIcon, m as HealthPlanFocusPrices, c as HealthPlanFocusDesign, n as HealthPlanFocusExtra, o as HealthPlanFocusWait, j as HealthPlanPageRepository, H as HealthPlanPage, i as HealthPlanSubscriptionRepository, p as HealthPlanSubscriptionQuote, g as HealthPlanSubscription, h as HealthPlanOneBoxOrder } from './focus.d-B0qweva0.cjs';
|
|
3
|
+
import { H as HealthPlanItem, a as HealthPlan, b as HealthPlanRepository } from './healthPlanRepository.d-fPbLceBr.cjs';
|
|
3
4
|
import { ReactNode } from 'react';
|
|
4
5
|
import { P as PetRef } from './ids.d-B2GAAifq.cjs';
|
|
5
|
-
import {
|
|
6
|
+
import { b as HealthPlanCart } from './layout.d-ByfOEhpG.cjs';
|
|
6
7
|
import { E as EverfurError } from './EverfurError.d-8NHtlgzA.cjs';
|
|
7
8
|
import { L as LifecyclePort } from './LifecyclePort.d-Cr1p33a7.cjs';
|
|
8
9
|
import { E as EverfurResult } from './EverfurResult.d-BFH-3s6E.cjs';
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
|
|
2
|
+
import { E as EverfurResult } from './EverfurResult.d-BFH-3s6E.cjs';
|
|
3
|
+
import { P as PetRef } from './ids.d-B2GAAifq.cjs';
|
|
4
|
+
import { E as EverfurInboxItem, b as EverfurInboxOpen, a as EverfurInboxClient } from './inbox.d-ChNXTovj.cjs';
|
|
5
|
+
import { E as EverfurError } from './EverfurError.d-8NHtlgzA.cjs';
|
|
6
|
+
import { L as LifecyclePort } from './LifecyclePort.d-Cr1p33a7.cjs';
|
|
7
|
+
|
|
8
|
+
/** The words of the inbox. Every key is a plain string. */
|
|
9
|
+
interface EverfurInboxCopy {
|
|
10
|
+
/** The list's heading and accessible name. */
|
|
11
|
+
readonly title: string;
|
|
12
|
+
/** The loading state's accessible name. */
|
|
13
|
+
readonly loading: string;
|
|
14
|
+
readonly emptyTitle: string;
|
|
15
|
+
readonly emptyBody: string;
|
|
16
|
+
/** The list failed to load. */
|
|
17
|
+
readonly errorTitle: string;
|
|
18
|
+
readonly errorBody: string;
|
|
19
|
+
readonly retry: string;
|
|
20
|
+
/** A row whose title arrived empty. */
|
|
21
|
+
readonly rowFallbackTitle: string;
|
|
22
|
+
/** Before an unread row's accessible name. */
|
|
23
|
+
readonly unreadPrefix: string;
|
|
24
|
+
/** After a relative time in an accessible name ("2h ago"). */
|
|
25
|
+
readonly timeAgoSuffix: string;
|
|
26
|
+
/** A time under a minute ago. */
|
|
27
|
+
readonly now: string;
|
|
28
|
+
/** Read the next older page. */
|
|
29
|
+
readonly more: string;
|
|
30
|
+
/** One item failed to load. */
|
|
31
|
+
readonly detailErrorTitle: string;
|
|
32
|
+
readonly detailErrorBody: string;
|
|
33
|
+
/** One item is gone (expired after 90 days, or removed). */
|
|
34
|
+
readonly notFoundTitle: string;
|
|
35
|
+
readonly notFoundBody: string;
|
|
36
|
+
/** Back from one item to the list. */
|
|
37
|
+
readonly back: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** Where the inbox stands. `off`: the inbox is not switched on for your tenant. */
|
|
41
|
+
type EverfurInboxStatus = 'idle' | 'loading' | 'ready' | 'off' | 'error';
|
|
42
|
+
interface EverfurInboxSnapshot {
|
|
43
|
+
readonly status: EverfurInboxStatus;
|
|
44
|
+
/** Every item read so far, newest first. */
|
|
45
|
+
readonly items: readonly EverfurInboxItem[];
|
|
46
|
+
/** The member's unread items across the inbox; null until a read answered. */
|
|
47
|
+
readonly unreadCount: number | null;
|
|
48
|
+
/** True while there are older items to read (`loadMore`). */
|
|
49
|
+
readonly hasMore: boolean;
|
|
50
|
+
/** A `refresh` is reading the first page again. */
|
|
51
|
+
readonly refreshing: boolean;
|
|
52
|
+
/** A `loadMore` is reading an older page. */
|
|
53
|
+
readonly loadingMore: boolean;
|
|
54
|
+
/** The last read's failure, or null. `error.displayMessage` is safe to show. */
|
|
55
|
+
readonly error: EverfurError | null;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
interface UseEverfurInboxOptions {
|
|
59
|
+
/** Only this pet's items. Absent, every item of the member (the inbox is the member's, not one pet's). */
|
|
60
|
+
readonly petRef?: PetRef | null;
|
|
61
|
+
/** Items per page, 1 to 50 (default 20). */
|
|
62
|
+
readonly pageSize?: number;
|
|
63
|
+
/**
|
|
64
|
+
* When to read again. Absent, the host's own signals (the page becoming visible again on the web, and a push
|
|
65
|
+
* Everfur's service worker received; the app returning to the foreground on React Native); pass your port to add
|
|
66
|
+
* your own push announcement (`onAnnounced`), or `null` to read on mount only.
|
|
67
|
+
*/
|
|
68
|
+
readonly lifecycle?: LifecyclePort | null;
|
|
69
|
+
}
|
|
70
|
+
interface EverfurInboxState extends EverfurInboxSnapshot {
|
|
71
|
+
/** Read the first page again now (a retry, a pull to refresh). Settles; never throws. */
|
|
72
|
+
refresh(): Promise<void>;
|
|
73
|
+
/** Read the next older page. */
|
|
74
|
+
loadMore(): Promise<void>;
|
|
75
|
+
markRead(itemId: string): Promise<EverfurResult<void>>;
|
|
76
|
+
markAllRead(): Promise<EverfurResult<void>>;
|
|
77
|
+
/** The item ready to route (read from Everfur when it is not on screen), marked read. */
|
|
78
|
+
open(ref: {
|
|
79
|
+
readonly itemId?: string;
|
|
80
|
+
readonly eventId?: string;
|
|
81
|
+
}): Promise<EverfurResult<EverfurInboxOpen>>;
|
|
82
|
+
}
|
|
83
|
+
/** The inbox client bound to the runtime under your provider. */
|
|
84
|
+
declare function useEverfurInboxClient(): EverfurInboxClient;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Called with a tapped item, already marked read. Route `open.notification?.target` (or `open.item.target`) as you
|
|
88
|
+
* route a tapped push. Return `false` to have the inbox show the item itself instead. A throw is swallowed.
|
|
89
|
+
*/
|
|
90
|
+
type EverfurInboxOpenHandler = (open: EverfurInboxOpen) => boolean | void;
|
|
91
|
+
|
|
92
|
+
interface UseEverfurInboxUnreadOptions {
|
|
93
|
+
/**
|
|
94
|
+
* When to read again. Absent, the host's own signals (as `useEverfurInbox`); pass your port to add your own push
|
|
95
|
+
* announcement (`onAnnounced`), or `null` to read on mount only.
|
|
96
|
+
*/
|
|
97
|
+
readonly lifecycle?: LifecyclePort | null;
|
|
98
|
+
}
|
|
99
|
+
interface EverfurInboxUnread {
|
|
100
|
+
/**
|
|
101
|
+
* The member's unread inbox items across pets, shared with `EverfurInbox`; null until read, while signed out, and
|
|
102
|
+
* while the inbox is off for your tenant.
|
|
103
|
+
*/
|
|
104
|
+
readonly unreadCount: number | null;
|
|
105
|
+
/** Read the count again now, for example from your own push handler. Settles; never throws. */
|
|
106
|
+
readonly refresh: () => Promise<void>;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export { type EverfurInboxOpenHandler as E, type UseEverfurInboxOptions as U, type EverfurInboxCopy as a, type EverfurInboxState as b, type UseEverfurInboxUnreadOptions as c, type EverfurInboxUnread as d, type EverfurInboxSnapshot as e, type EverfurInboxStatus as f, useEverfurInboxClient as u };
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
|
|
2
|
+
import { E as EverfurResult } from './EverfurResult.d-D_-254ZY.js';
|
|
3
|
+
import { P as PetRef } from './ids.d-B2GAAifq.js';
|
|
4
|
+
import { E as EverfurInboxItem, b as EverfurInboxOpen, a as EverfurInboxClient } from './inbox.d-CuuPTWyW.js';
|
|
5
|
+
import { E as EverfurError } from './EverfurError.d-8NHtlgzA.js';
|
|
6
|
+
import { L as LifecyclePort } from './LifecyclePort.d-Cr1p33a7.js';
|
|
7
|
+
|
|
8
|
+
/** The words of the inbox. Every key is a plain string. */
|
|
9
|
+
interface EverfurInboxCopy {
|
|
10
|
+
/** The list's heading and accessible name. */
|
|
11
|
+
readonly title: string;
|
|
12
|
+
/** The loading state's accessible name. */
|
|
13
|
+
readonly loading: string;
|
|
14
|
+
readonly emptyTitle: string;
|
|
15
|
+
readonly emptyBody: string;
|
|
16
|
+
/** The list failed to load. */
|
|
17
|
+
readonly errorTitle: string;
|
|
18
|
+
readonly errorBody: string;
|
|
19
|
+
readonly retry: string;
|
|
20
|
+
/** A row whose title arrived empty. */
|
|
21
|
+
readonly rowFallbackTitle: string;
|
|
22
|
+
/** Before an unread row's accessible name. */
|
|
23
|
+
readonly unreadPrefix: string;
|
|
24
|
+
/** After a relative time in an accessible name ("2h ago"). */
|
|
25
|
+
readonly timeAgoSuffix: string;
|
|
26
|
+
/** A time under a minute ago. */
|
|
27
|
+
readonly now: string;
|
|
28
|
+
/** Read the next older page. */
|
|
29
|
+
readonly more: string;
|
|
30
|
+
/** One item failed to load. */
|
|
31
|
+
readonly detailErrorTitle: string;
|
|
32
|
+
readonly detailErrorBody: string;
|
|
33
|
+
/** One item is gone (expired after 90 days, or removed). */
|
|
34
|
+
readonly notFoundTitle: string;
|
|
35
|
+
readonly notFoundBody: string;
|
|
36
|
+
/** Back from one item to the list. */
|
|
37
|
+
readonly back: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** Where the inbox stands. `off`: the inbox is not switched on for your tenant. */
|
|
41
|
+
type EverfurInboxStatus = 'idle' | 'loading' | 'ready' | 'off' | 'error';
|
|
42
|
+
interface EverfurInboxSnapshot {
|
|
43
|
+
readonly status: EverfurInboxStatus;
|
|
44
|
+
/** Every item read so far, newest first. */
|
|
45
|
+
readonly items: readonly EverfurInboxItem[];
|
|
46
|
+
/** The member's unread items across the inbox; null until a read answered. */
|
|
47
|
+
readonly unreadCount: number | null;
|
|
48
|
+
/** True while there are older items to read (`loadMore`). */
|
|
49
|
+
readonly hasMore: boolean;
|
|
50
|
+
/** A `refresh` is reading the first page again. */
|
|
51
|
+
readonly refreshing: boolean;
|
|
52
|
+
/** A `loadMore` is reading an older page. */
|
|
53
|
+
readonly loadingMore: boolean;
|
|
54
|
+
/** The last read's failure, or null. `error.displayMessage` is safe to show. */
|
|
55
|
+
readonly error: EverfurError | null;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
interface UseEverfurInboxOptions {
|
|
59
|
+
/** Only this pet's items. Absent, every item of the member (the inbox is the member's, not one pet's). */
|
|
60
|
+
readonly petRef?: PetRef | null;
|
|
61
|
+
/** Items per page, 1 to 50 (default 20). */
|
|
62
|
+
readonly pageSize?: number;
|
|
63
|
+
/**
|
|
64
|
+
* When to read again. Absent, the host's own signals (the page becoming visible again on the web, and a push
|
|
65
|
+
* Everfur's service worker received; the app returning to the foreground on React Native); pass your port to add
|
|
66
|
+
* your own push announcement (`onAnnounced`), or `null` to read on mount only.
|
|
67
|
+
*/
|
|
68
|
+
readonly lifecycle?: LifecyclePort | null;
|
|
69
|
+
}
|
|
70
|
+
interface EverfurInboxState extends EverfurInboxSnapshot {
|
|
71
|
+
/** Read the first page again now (a retry, a pull to refresh). Settles; never throws. */
|
|
72
|
+
refresh(): Promise<void>;
|
|
73
|
+
/** Read the next older page. */
|
|
74
|
+
loadMore(): Promise<void>;
|
|
75
|
+
markRead(itemId: string): Promise<EverfurResult<void>>;
|
|
76
|
+
markAllRead(): Promise<EverfurResult<void>>;
|
|
77
|
+
/** The item ready to route (read from Everfur when it is not on screen), marked read. */
|
|
78
|
+
open(ref: {
|
|
79
|
+
readonly itemId?: string;
|
|
80
|
+
readonly eventId?: string;
|
|
81
|
+
}): Promise<EverfurResult<EverfurInboxOpen>>;
|
|
82
|
+
}
|
|
83
|
+
/** The inbox client bound to the runtime under your provider. */
|
|
84
|
+
declare function useEverfurInboxClient(): EverfurInboxClient;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Called with a tapped item, already marked read. Route `open.notification?.target` (or `open.item.target`) as you
|
|
88
|
+
* route a tapped push. Return `false` to have the inbox show the item itself instead. A throw is swallowed.
|
|
89
|
+
*/
|
|
90
|
+
type EverfurInboxOpenHandler = (open: EverfurInboxOpen) => boolean | void;
|
|
91
|
+
|
|
92
|
+
interface UseEverfurInboxUnreadOptions {
|
|
93
|
+
/**
|
|
94
|
+
* When to read again. Absent, the host's own signals (as `useEverfurInbox`); pass your port to add your own push
|
|
95
|
+
* announcement (`onAnnounced`), or `null` to read on mount only.
|
|
96
|
+
*/
|
|
97
|
+
readonly lifecycle?: LifecyclePort | null;
|
|
98
|
+
}
|
|
99
|
+
interface EverfurInboxUnread {
|
|
100
|
+
/**
|
|
101
|
+
* The member's unread inbox items across pets, shared with `EverfurInbox`; null until read, while signed out, and
|
|
102
|
+
* while the inbox is off for your tenant.
|
|
103
|
+
*/
|
|
104
|
+
readonly unreadCount: number | null;
|
|
105
|
+
/** Read the count again now, for example from your own push handler. Settles; never throws. */
|
|
106
|
+
readonly refresh: () => Promise<void>;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export { type EverfurInboxOpenHandler as E, type UseEverfurInboxOptions as U, type EverfurInboxCopy as a, type EverfurInboxState as b, type UseEverfurInboxUnreadOptions as c, type EverfurInboxUnread as d, type EverfurInboxSnapshot as e, type EverfurInboxStatus as f, useEverfurInboxClient as u };
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
|
|
2
|
+
import { c as HealthPlanReasonKind } from './healthPlanRepository.d-fPbLceBr.cjs';
|
|
3
|
+
import { e as RecordsRequestView, g as RecordsView } from './models.d-BN53M9sU.cjs';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
import { b as HealthPlanPagePet, c as HealthPlanFocusDesign, H as HealthPlanPage } from './focus.d-B0qweva0.cjs';
|
|
6
|
+
import { c as EverfurChatTopCardRow, a as EverfurChatTopCard } from './threadOptions.d-CW51PyVd.cjs';
|
|
7
|
+
import { i as EverfurPresentationInput, h as EverfurPresentation } from './presentation.d-BvZs_jN-.cjs';
|
|
8
|
+
|
|
9
|
+
declare const HEALTH_PLAN_COPY: Readonly<{
|
|
10
|
+
loading: "Loading";
|
|
11
|
+
retry: "Try again";
|
|
12
|
+
signedOut: "Sign in required";
|
|
13
|
+
addToCart: "Add to cart";
|
|
14
|
+
added: "Added";
|
|
15
|
+
remove: "Remove";
|
|
16
|
+
checkout: "Checkout";
|
|
17
|
+
subtotal: "Subtotal";
|
|
18
|
+
sample: "Sample";
|
|
19
|
+
cartEmpty: "Your cart is empty.";
|
|
20
|
+
choosePet: "Choose a pet";
|
|
21
|
+
emptyTitle: "";
|
|
22
|
+
emptyBody: "";
|
|
23
|
+
emptyAsk: "";
|
|
24
|
+
}>;
|
|
25
|
+
/** The Health Plan's empty state words (Q1). Each is '' by default: an empty title and body draw nothing. */
|
|
26
|
+
interface HealthPlanEmptyCopy {
|
|
27
|
+
readonly emptyTitle: string;
|
|
28
|
+
readonly emptyBody: string;
|
|
29
|
+
/** The empty state's Ask button. */
|
|
30
|
+
readonly emptyAsk: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The reason labels, one per kind. An empty label is not drawn (the reason's text still is). `profile` (a pet profile
|
|
34
|
+
* fact) has no source yet; `dna` names one partner's product, so the SDK leaves it to that partner (Q3).
|
|
35
|
+
*/
|
|
36
|
+
declare const HEALTH_PLAN_REASON_LABELS: Readonly<Record<HealthPlanReasonKind, string>>;
|
|
37
|
+
/** ADAPTED from the designer. Listed for approval. */
|
|
38
|
+
declare const HEALTH_PLAN_TEMPLATES: Readonly<{
|
|
39
|
+
/** The designer: "{pet}'s care plan". Used only when the plan carries no `headline` of the tenant's own. */
|
|
40
|
+
planTitle: (petName: string) => string;
|
|
41
|
+
/** The designer: "<brand> cart" (his demo named the partner). */
|
|
42
|
+
cartLabel: (brand: string) => string;
|
|
43
|
+
}>;
|
|
44
|
+
/** Every key still waiting on the design's words (empty, so not drawn), so the list a reviewer approves cannot drift from the file. */
|
|
45
|
+
declare const HEALTH_PLAN_COPY_PLACEHOLDERS: readonly string[];
|
|
46
|
+
|
|
47
|
+
/** Where her clinic request stands, for the three blanks. */
|
|
48
|
+
type HealthPlanBlanksPhase = 'wait' | 'filled';
|
|
49
|
+
interface HealthPlanBlanksFacts {
|
|
50
|
+
readonly phase: HealthPlanBlanksPhase;
|
|
51
|
+
/** The request's id: the plan flashes the filled blanks once per request. */
|
|
52
|
+
readonly requestId: string;
|
|
53
|
+
/** The clinic the request went to, as the member chose it; null when the request does not name one. */
|
|
54
|
+
readonly clinicName: string | null;
|
|
55
|
+
/** Her latest weight in her vet records, in kilograms; null when they hold none (or before they land). */
|
|
56
|
+
readonly weightKg: number | null;
|
|
57
|
+
/** When her next vaccine is due (ms, a UTC day), the earliest one due from today on; null when none is. */
|
|
58
|
+
readonly nextShotsAt: number | null;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Her latest weight from her vet records: the record's weight series and weight facts, newest first. A reading the
|
|
62
|
+
* owner typed (`owner_reported`) is not her vet records' and is skipped.
|
|
63
|
+
*/
|
|
64
|
+
declare function healthPlanRecordsWeightKg(record: RecordsView | null): number | null;
|
|
65
|
+
/** The earliest vaccine her record says is due from `today` (ms, the start of a UTC day) on. */
|
|
66
|
+
declare function healthPlanNextShotsAt(record: RecordsView | null, today: number): number | null;
|
|
67
|
+
/**
|
|
68
|
+
* The three blanks from her records read: the latest clinic request and the record. `now` is a clock reading (ms).
|
|
69
|
+
* Null when there is no card to draw.
|
|
70
|
+
*/
|
|
71
|
+
declare function healthPlanBlanksFacts(input: {
|
|
72
|
+
readonly requests: readonly RecordsRequestView[];
|
|
73
|
+
readonly record: RecordsView | null;
|
|
74
|
+
}, now: number): HealthPlanBlanksFacts | null;
|
|
75
|
+
|
|
76
|
+
/** The page's focus, as the copy functions receive it. */
|
|
77
|
+
type HealthPlanTopCardFocus = NonNullable<HealthPlanFocusDesign['focus']>;
|
|
78
|
+
/** Who the card is about: the page's pet and the possessive its words use ("her", "his", "{pet}'s"), or null. */
|
|
79
|
+
interface HealthPlanTopCardPet {
|
|
80
|
+
readonly pet: HealthPlanPagePet;
|
|
81
|
+
readonly possessive: string | null;
|
|
82
|
+
}
|
|
83
|
+
/** The card's own words. Defaults: The design's v3 design (`HEALTH_PLAN_TOP_CARD_COPY`). */
|
|
84
|
+
interface HealthPlanTopCardCopy {
|
|
85
|
+
/** The plan button ("See her Health Plan"); null draws none. */
|
|
86
|
+
readonly action: (who: HealthPlanTopCardPet) => string | null;
|
|
87
|
+
/** The question link ("What does it mean?"). */
|
|
88
|
+
readonly ask: string;
|
|
89
|
+
/** What the link sends to the chat: the risk line's lead, then the link's words. */
|
|
90
|
+
readonly askPrompt: (focus: HealthPlanTopCardFocus, ask: string) => string;
|
|
91
|
+
/** The close control's accessible name ("Close her focus"); null or blank names it with the chat's plain "Close". */
|
|
92
|
+
readonly close: (who: HealthPlanTopCardPet) => string | null;
|
|
93
|
+
/** The results card's heading and pill ("Her results", `results`, design round 12); null keeps the page's kicker. */
|
|
94
|
+
readonly resultsKicker: (who: HealthPlanTopCardPet) => string | null;
|
|
95
|
+
/** The results card's close ("Close her results"); null or blank names it with the chat's plain "Close". */
|
|
96
|
+
readonly resultsClose: (who: HealthPlanTopCardPet) => string | null;
|
|
97
|
+
/** The label of the page's own row in the results card: "Top risk". */
|
|
98
|
+
readonly resultsTopRisk: string;
|
|
99
|
+
}
|
|
100
|
+
declare const HEALTH_PLAN_TOP_CARD_COPY: HealthPlanTopCardCopy;
|
|
101
|
+
/** The pet facts the possessive reads: its name and sex (a plan page's pet, or the focus words' pet). */
|
|
102
|
+
interface HealthPlanPossessivePet {
|
|
103
|
+
readonly name?: string | null;
|
|
104
|
+
readonly sex?: string | null;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* "her" for a female, "his" for a male, "{pet}'s" for a named pet of unknown sex, else null. The sex is read
|
|
108
|
+
* leniently (any case, surrounding spaces), so a host-shaped page that says "Female" still reads as her.
|
|
109
|
+
*/
|
|
110
|
+
declare function healthPlanPossessive(pet: HealthPlanPossessivePet): string | null;
|
|
111
|
+
interface HealthPlanTopCardOptions {
|
|
112
|
+
/** Opens the pet's Health Plan (your tab or screen). Absent, the card has no plan button. */
|
|
113
|
+
readonly onOpenPlan?: (() => void) | undefined;
|
|
114
|
+
readonly copy?: Partial<HealthPlanTopCardCopy>;
|
|
115
|
+
/** Draw the close icon your way. */
|
|
116
|
+
readonly renderIcon?: (icon: 'close') => ReactNode;
|
|
117
|
+
/**
|
|
118
|
+
* Draw the card as her results in short (web, design round 12), only when the page's focus carries her report's words
|
|
119
|
+
* (`focus.report`, a plan drawn from her DNA report): the page's top risk as the first row, then `rows` (yours).
|
|
120
|
+
* Without the report's words the card stays the focus card.
|
|
121
|
+
*/
|
|
122
|
+
readonly results?: HealthPlanTopCardResults;
|
|
123
|
+
}
|
|
124
|
+
/** The results card's parts that are yours (`HealthPlanTopCardOptions.results`). */
|
|
125
|
+
interface HealthPlanTopCardResults {
|
|
126
|
+
/** Your rows after the top risk (a breed mix, traits, a count of clear results). */
|
|
127
|
+
readonly rows?: readonly EverfurChatTopCardRow[];
|
|
128
|
+
/** The top risk row's tap. Absent, it opens the plan (`onOpenPlan`). */
|
|
129
|
+
readonly onTopRisk?: () => void;
|
|
130
|
+
}
|
|
131
|
+
/** The top card for a page, or undefined when the page has no focus to show. Pure. */
|
|
132
|
+
declare function healthPlanTopCard(page: HealthPlanPage | null, options?: HealthPlanTopCardOptions): EverfurChatTopCard | undefined;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* The tenant's presentation settings resolved against `client` (the explicit props; leave a field undefined to
|
|
136
|
+
* take the console value). Total: always every field.
|
|
137
|
+
*/
|
|
138
|
+
declare function useEverfurPresentation(client?: EverfurPresentationInput | null): EverfurPresentation;
|
|
139
|
+
|
|
140
|
+
export { type HealthPlanBlanksFacts as H, type HealthPlanEmptyCopy as a, type HealthPlanTopCardResults as b, type HealthPlanTopCardCopy as c, HEALTH_PLAN_COPY as d, HEALTH_PLAN_COPY_PLACEHOLDERS as e, HEALTH_PLAN_REASON_LABELS as f, HEALTH_PLAN_TEMPLATES as g, HEALTH_PLAN_TOP_CARD_COPY as h, type HealthPlanBlanksPhase as i, type HealthPlanTopCardFocus as j, type HealthPlanTopCardPet as k, healthPlanBlanksFacts as l, healthPlanNextShotsAt as m, healthPlanRecordsWeightKg as n, type HealthPlanTopCardOptions as o, type HealthPlanPossessivePet as p, healthPlanPossessive as q, healthPlanTopCard as r, useEverfurPresentation as u };
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/*! @everfur/sdk. Copyright (c) 2026 Strand Health Inc. dba Everfur. All rights reserved. Use is subject to the Everfur SDK License: https://docs.everfur.com/license */
|
|
2
|
+
import { c as HealthPlanReasonKind } from './healthPlanRepository.d-CdCyUWph.js';
|
|
3
|
+
import { e as RecordsRequestView, g as RecordsView } from './models.d-Bhq9p6Wa.js';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
import { b as HealthPlanPagePet, c as HealthPlanFocusDesign, H as HealthPlanPage } from './focus.d-7G0BBmA9.js';
|
|
6
|
+
import { c as EverfurChatTopCardRow, a as EverfurChatTopCard } from './threadOptions.d-CW51PyVd.js';
|
|
7
|
+
import { i as EverfurPresentationInput, h as EverfurPresentation } from './presentation.d-BvZs_jN-.js';
|
|
8
|
+
|
|
9
|
+
declare const HEALTH_PLAN_COPY: Readonly<{
|
|
10
|
+
loading: "Loading";
|
|
11
|
+
retry: "Try again";
|
|
12
|
+
signedOut: "Sign in required";
|
|
13
|
+
addToCart: "Add to cart";
|
|
14
|
+
added: "Added";
|
|
15
|
+
remove: "Remove";
|
|
16
|
+
checkout: "Checkout";
|
|
17
|
+
subtotal: "Subtotal";
|
|
18
|
+
sample: "Sample";
|
|
19
|
+
cartEmpty: "Your cart is empty.";
|
|
20
|
+
choosePet: "Choose a pet";
|
|
21
|
+
emptyTitle: "";
|
|
22
|
+
emptyBody: "";
|
|
23
|
+
emptyAsk: "";
|
|
24
|
+
}>;
|
|
25
|
+
/** The Health Plan's empty state words (Q1). Each is '' by default: an empty title and body draw nothing. */
|
|
26
|
+
interface HealthPlanEmptyCopy {
|
|
27
|
+
readonly emptyTitle: string;
|
|
28
|
+
readonly emptyBody: string;
|
|
29
|
+
/** The empty state's Ask button. */
|
|
30
|
+
readonly emptyAsk: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The reason labels, one per kind. An empty label is not drawn (the reason's text still is). `profile` (a pet profile
|
|
34
|
+
* fact) has no source yet; `dna` names one partner's product, so the SDK leaves it to that partner (Q3).
|
|
35
|
+
*/
|
|
36
|
+
declare const HEALTH_PLAN_REASON_LABELS: Readonly<Record<HealthPlanReasonKind, string>>;
|
|
37
|
+
/** ADAPTED from the designer. Listed for approval. */
|
|
38
|
+
declare const HEALTH_PLAN_TEMPLATES: Readonly<{
|
|
39
|
+
/** The designer: "{pet}'s care plan". Used only when the plan carries no `headline` of the tenant's own. */
|
|
40
|
+
planTitle: (petName: string) => string;
|
|
41
|
+
/** The designer: "<brand> cart" (his demo named the partner). */
|
|
42
|
+
cartLabel: (brand: string) => string;
|
|
43
|
+
}>;
|
|
44
|
+
/** Every key still waiting on the design's words (empty, so not drawn), so the list a reviewer approves cannot drift from the file. */
|
|
45
|
+
declare const HEALTH_PLAN_COPY_PLACEHOLDERS: readonly string[];
|
|
46
|
+
|
|
47
|
+
/** Where her clinic request stands, for the three blanks. */
|
|
48
|
+
type HealthPlanBlanksPhase = 'wait' | 'filled';
|
|
49
|
+
interface HealthPlanBlanksFacts {
|
|
50
|
+
readonly phase: HealthPlanBlanksPhase;
|
|
51
|
+
/** The request's id: the plan flashes the filled blanks once per request. */
|
|
52
|
+
readonly requestId: string;
|
|
53
|
+
/** The clinic the request went to, as the member chose it; null when the request does not name one. */
|
|
54
|
+
readonly clinicName: string | null;
|
|
55
|
+
/** Her latest weight in her vet records, in kilograms; null when they hold none (or before they land). */
|
|
56
|
+
readonly weightKg: number | null;
|
|
57
|
+
/** When her next vaccine is due (ms, a UTC day), the earliest one due from today on; null when none is. */
|
|
58
|
+
readonly nextShotsAt: number | null;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Her latest weight from her vet records: the record's weight series and weight facts, newest first. A reading the
|
|
62
|
+
* owner typed (`owner_reported`) is not her vet records' and is skipped.
|
|
63
|
+
*/
|
|
64
|
+
declare function healthPlanRecordsWeightKg(record: RecordsView | null): number | null;
|
|
65
|
+
/** The earliest vaccine her record says is due from `today` (ms, the start of a UTC day) on. */
|
|
66
|
+
declare function healthPlanNextShotsAt(record: RecordsView | null, today: number): number | null;
|
|
67
|
+
/**
|
|
68
|
+
* The three blanks from her records read: the latest clinic request and the record. `now` is a clock reading (ms).
|
|
69
|
+
* Null when there is no card to draw.
|
|
70
|
+
*/
|
|
71
|
+
declare function healthPlanBlanksFacts(input: {
|
|
72
|
+
readonly requests: readonly RecordsRequestView[];
|
|
73
|
+
readonly record: RecordsView | null;
|
|
74
|
+
}, now: number): HealthPlanBlanksFacts | null;
|
|
75
|
+
|
|
76
|
+
/** The page's focus, as the copy functions receive it. */
|
|
77
|
+
type HealthPlanTopCardFocus = NonNullable<HealthPlanFocusDesign['focus']>;
|
|
78
|
+
/** Who the card is about: the page's pet and the possessive its words use ("her", "his", "{pet}'s"), or null. */
|
|
79
|
+
interface HealthPlanTopCardPet {
|
|
80
|
+
readonly pet: HealthPlanPagePet;
|
|
81
|
+
readonly possessive: string | null;
|
|
82
|
+
}
|
|
83
|
+
/** The card's own words. Defaults: The design's v3 design (`HEALTH_PLAN_TOP_CARD_COPY`). */
|
|
84
|
+
interface HealthPlanTopCardCopy {
|
|
85
|
+
/** The plan button ("See her Health Plan"); null draws none. */
|
|
86
|
+
readonly action: (who: HealthPlanTopCardPet) => string | null;
|
|
87
|
+
/** The question link ("What does it mean?"). */
|
|
88
|
+
readonly ask: string;
|
|
89
|
+
/** What the link sends to the chat: the risk line's lead, then the link's words. */
|
|
90
|
+
readonly askPrompt: (focus: HealthPlanTopCardFocus, ask: string) => string;
|
|
91
|
+
/** The close control's accessible name ("Close her focus"); null or blank names it with the chat's plain "Close". */
|
|
92
|
+
readonly close: (who: HealthPlanTopCardPet) => string | null;
|
|
93
|
+
/** The results card's heading and pill ("Her results", `results`, design round 12); null keeps the page's kicker. */
|
|
94
|
+
readonly resultsKicker: (who: HealthPlanTopCardPet) => string | null;
|
|
95
|
+
/** The results card's close ("Close her results"); null or blank names it with the chat's plain "Close". */
|
|
96
|
+
readonly resultsClose: (who: HealthPlanTopCardPet) => string | null;
|
|
97
|
+
/** The label of the page's own row in the results card: "Top risk". */
|
|
98
|
+
readonly resultsTopRisk: string;
|
|
99
|
+
}
|
|
100
|
+
declare const HEALTH_PLAN_TOP_CARD_COPY: HealthPlanTopCardCopy;
|
|
101
|
+
/** The pet facts the possessive reads: its name and sex (a plan page's pet, or the focus words' pet). */
|
|
102
|
+
interface HealthPlanPossessivePet {
|
|
103
|
+
readonly name?: string | null;
|
|
104
|
+
readonly sex?: string | null;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* "her" for a female, "his" for a male, "{pet}'s" for a named pet of unknown sex, else null. The sex is read
|
|
108
|
+
* leniently (any case, surrounding spaces), so a host-shaped page that says "Female" still reads as her.
|
|
109
|
+
*/
|
|
110
|
+
declare function healthPlanPossessive(pet: HealthPlanPossessivePet): string | null;
|
|
111
|
+
interface HealthPlanTopCardOptions {
|
|
112
|
+
/** Opens the pet's Health Plan (your tab or screen). Absent, the card has no plan button. */
|
|
113
|
+
readonly onOpenPlan?: (() => void) | undefined;
|
|
114
|
+
readonly copy?: Partial<HealthPlanTopCardCopy>;
|
|
115
|
+
/** Draw the close icon your way. */
|
|
116
|
+
readonly renderIcon?: (icon: 'close') => ReactNode;
|
|
117
|
+
/**
|
|
118
|
+
* Draw the card as her results in short (web, design round 12), only when the page's focus carries her report's words
|
|
119
|
+
* (`focus.report`, a plan drawn from her DNA report): the page's top risk as the first row, then `rows` (yours).
|
|
120
|
+
* Without the report's words the card stays the focus card.
|
|
121
|
+
*/
|
|
122
|
+
readonly results?: HealthPlanTopCardResults;
|
|
123
|
+
}
|
|
124
|
+
/** The results card's parts that are yours (`HealthPlanTopCardOptions.results`). */
|
|
125
|
+
interface HealthPlanTopCardResults {
|
|
126
|
+
/** Your rows after the top risk (a breed mix, traits, a count of clear results). */
|
|
127
|
+
readonly rows?: readonly EverfurChatTopCardRow[];
|
|
128
|
+
/** The top risk row's tap. Absent, it opens the plan (`onOpenPlan`). */
|
|
129
|
+
readonly onTopRisk?: () => void;
|
|
130
|
+
}
|
|
131
|
+
/** The top card for a page, or undefined when the page has no focus to show. Pure. */
|
|
132
|
+
declare function healthPlanTopCard(page: HealthPlanPage | null, options?: HealthPlanTopCardOptions): EverfurChatTopCard | undefined;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* The tenant's presentation settings resolved against `client` (the explicit props; leave a field undefined to
|
|
136
|
+
* take the console value). Total: always every field.
|
|
137
|
+
*/
|
|
138
|
+
declare function useEverfurPresentation(client?: EverfurPresentationInput | null): EverfurPresentation;
|
|
139
|
+
|
|
140
|
+
export { type HealthPlanBlanksFacts as H, type HealthPlanEmptyCopy as a, type HealthPlanTopCardResults as b, type HealthPlanTopCardCopy as c, HEALTH_PLAN_COPY as d, HEALTH_PLAN_COPY_PLACEHOLDERS as e, HEALTH_PLAN_REASON_LABELS as f, HEALTH_PLAN_TEMPLATES as g, HEALTH_PLAN_TOP_CARD_COPY as h, type HealthPlanBlanksPhase as i, type HealthPlanTopCardFocus as j, type HealthPlanTopCardPet as k, healthPlanBlanksFacts as l, healthPlanNextShotsAt as m, healthPlanRecordsWeightKg as n, type HealthPlanTopCardOptions as o, type HealthPlanPossessivePet as p, healthPlanPossessive as q, healthPlanTopCard as r, useEverfurPresentation as u };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { E as EverfurError } from './EverfurError.d-8NHtlgzA.js';
|
|
3
3
|
import { E as EverfurResult } from './EverfurResult.d-D_-254ZY.js';
|
|
4
4
|
import { P as PetRef } from './ids.d-B2GAAifq.js';
|
|
5
|
-
import { l as RecordsDepthClient } from './depth.d-
|
|
5
|
+
import { l as RecordsDepthClient } from './depth.d-C_HL8yAz.js';
|
|
6
6
|
|
|
7
7
|
type RecordsDepthStatus = 'loading' | 'empty' | 'error' | 'populated';
|
|
8
8
|
/** One depth read as a render state. `withheld` (no consent, or a fail-closed parse) renders nothing. */
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { E as EverfurError } from './EverfurError.d-8NHtlgzA.cjs';
|
|
3
3
|
import { E as EverfurResult } from './EverfurResult.d-BFH-3s6E.cjs';
|
|
4
4
|
import { P as PetRef } from './ids.d-B2GAAifq.cjs';
|
|
5
|
-
import { l as RecordsDepthClient } from './depth.d-
|
|
5
|
+
import { l as RecordsDepthClient } from './depth.d-De5pT7vA.cjs';
|
|
6
6
|
|
|
7
7
|
type RecordsDepthStatus = 'loading' | 'empty' | 'error' | 'populated';
|
|
8
8
|
/** One depth read as a render state. `withheld` (no consent, or a fail-closed parse) renders nothing. */
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
4
4
|
import { P as PetRef, C as ConversationId } from './ids.d-B2GAAifq.js';
|
|
5
|
-
import { i as EverfurPresentationInput } from './presentation.d-
|
|
6
|
-
import { a as ChatCheckinTarget } from './chatTypes.d-
|
|
7
|
-
import { W as WidgetPet, P as PetProfileInput } from './petsRepository.d-
|
|
5
|
+
import { i as EverfurPresentationInput } from './presentation.d-BvZs_jN-.js';
|
|
6
|
+
import { a as ChatCheckinTarget } from './chatTypes.d-DbdF3ij5.js';
|
|
7
|
+
import { W as WidgetPet, P as PetProfileInput } from './petsRepository.d-CSOth5XE.js';
|
|
8
8
|
import { E as EverfurStarterPrompt } from './quickPrompts.d-NM_81Jc1.js';
|
|
9
9
|
import { L as LifecyclePort } from './LifecyclePort.d-Cr1p33a7.js';
|
|
10
|
-
import { U as UrgencyDisplayLevel, E as EverfurChatDraftStore, b as ChatFollowUpPolicy, i as UseEverfurUnreadOptions, d as EverfurUnreadState } from './chatHandoffToken.d-
|
|
10
|
+
import { U as UrgencyDisplayLevel, E as EverfurChatDraftStore, b as ChatFollowUpPolicy, i as UseEverfurUnreadOptions, d as EverfurUnreadState } from './chatHandoffToken.d-BCEdhZpd.js';
|
|
11
11
|
import { F as FileHandle } from './ports.d-BX4f4UsB.js';
|
|
12
12
|
import { g as EverfurChatOpeningCard, a as EverfurChatAnswerCards, f as EverfurChatHistorySheet, e as EverfurChatHistoryBar, c as EverfurChatEmptyState } from './threadOptions.d-U5YBUKM-.js';
|
|
13
13
|
import { E as EverfurChatEmptyHeaderContext, a as EverfurChatTopCard } from './threadOptions.d-CW51PyVd.js';
|
|
@@ -240,9 +240,12 @@ interface EverfurChatProps {
|
|
|
240
240
|
readonly answerCards?: EverfurChatAnswerCards;
|
|
241
241
|
/** The history sheet's title and icons (used while `chatHistoryStyle` resolves to `sheet`). */
|
|
242
242
|
readonly historySheet?: EverfurChatHistorySheet;
|
|
243
|
-
/**
|
|
243
|
+
/**
|
|
244
|
+
* The history bar ("Chats" and "New chat"); `chatHistoryBar: "scroll"` puts it at the top of the thread. Absent,
|
|
245
|
+
* none is drawn under the SDK header, and the SDK's own words are drawn with `header={false}`.
|
|
246
|
+
*/
|
|
244
247
|
readonly historyBar?: EverfurChatHistoryBar;
|
|
245
|
-
/** Your own starter chips, in place of the built-in four. */
|
|
248
|
+
/** Your own starter chips, in place of the served starters (cards style) or the built-in four. */
|
|
246
249
|
readonly starterPrompts?: readonly EverfurStarterPrompt[];
|
|
247
250
|
/** The empty thread's title and chip fills. */
|
|
248
251
|
readonly emptyState?: EverfurChatEmptyState;
|
|
@@ -250,7 +253,7 @@ interface EverfurChatProps {
|
|
|
250
253
|
* Whether the surface draws its own header bar (the history control, the pet and its switcher, the vet entry).
|
|
251
254
|
* Default `true`. Pass `false` when your own screen already has a header over chat (the web surface's `header`):
|
|
252
255
|
* the thread, the urgency banner and the composer are unchanged. Without the header, the history bar
|
|
253
|
-
* (`historyBar`) is the way into past chats.
|
|
256
|
+
* (`historyBar`) is the way into past chats; when you pass none, the chat draws its own ("Chats", "New chat").
|
|
254
257
|
*/
|
|
255
258
|
readonly header?: boolean;
|
|
256
259
|
/**
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
4
4
|
import { P as PetRef, C as ConversationId } from './ids.d-B2GAAifq.cjs';
|
|
5
|
-
import { i as EverfurPresentationInput } from './presentation.d-
|
|
6
|
-
import { a as ChatCheckinTarget } from './chatTypes.d-
|
|
7
|
-
import { W as WidgetPet, P as PetProfileInput } from './petsRepository.d-
|
|
5
|
+
import { i as EverfurPresentationInput } from './presentation.d-BvZs_jN-.cjs';
|
|
6
|
+
import { a as ChatCheckinTarget } from './chatTypes.d-CFyYBzps.cjs';
|
|
7
|
+
import { W as WidgetPet, P as PetProfileInput } from './petsRepository.d-Bj9rPnCr.cjs';
|
|
8
8
|
import { E as EverfurStarterPrompt } from './quickPrompts.d-NM_81Jc1.cjs';
|
|
9
9
|
import { L as LifecyclePort } from './LifecyclePort.d-Cr1p33a7.cjs';
|
|
10
|
-
import { U as UrgencyDisplayLevel, E as EverfurChatDraftStore, b as ChatFollowUpPolicy, i as UseEverfurUnreadOptions, d as EverfurUnreadState } from './chatHandoffToken.d-
|
|
10
|
+
import { U as UrgencyDisplayLevel, E as EverfurChatDraftStore, b as ChatFollowUpPolicy, i as UseEverfurUnreadOptions, d as EverfurUnreadState } from './chatHandoffToken.d-uKnSnIzN.cjs';
|
|
11
11
|
import { F as FileHandle } from './ports.d-BX4f4UsB.cjs';
|
|
12
12
|
import { g as EverfurChatOpeningCard, a as EverfurChatAnswerCards, f as EverfurChatHistorySheet, e as EverfurChatHistoryBar, c as EverfurChatEmptyState } from './threadOptions.d-bEAFkIsC.cjs';
|
|
13
13
|
import { E as EverfurChatEmptyHeaderContext, a as EverfurChatTopCard } from './threadOptions.d-CW51PyVd.cjs';
|
|
@@ -240,9 +240,12 @@ interface EverfurChatProps {
|
|
|
240
240
|
readonly answerCards?: EverfurChatAnswerCards;
|
|
241
241
|
/** The history sheet's title and icons (used while `chatHistoryStyle` resolves to `sheet`). */
|
|
242
242
|
readonly historySheet?: EverfurChatHistorySheet;
|
|
243
|
-
/**
|
|
243
|
+
/**
|
|
244
|
+
* The history bar ("Chats" and "New chat"); `chatHistoryBar: "scroll"` puts it at the top of the thread. Absent,
|
|
245
|
+
* none is drawn under the SDK header, and the SDK's own words are drawn with `header={false}`.
|
|
246
|
+
*/
|
|
244
247
|
readonly historyBar?: EverfurChatHistoryBar;
|
|
245
|
-
/** Your own starter chips, in place of the built-in four. */
|
|
248
|
+
/** Your own starter chips, in place of the served starters (cards style) or the built-in four. */
|
|
246
249
|
readonly starterPrompts?: readonly EverfurStarterPrompt[];
|
|
247
250
|
/** The empty thread's title and chip fills. */
|
|
248
251
|
readonly emptyState?: EverfurChatEmptyState;
|
|
@@ -250,7 +253,7 @@ interface EverfurChatProps {
|
|
|
250
253
|
* Whether the surface draws its own header bar (the history control, the pet and its switcher, the vet entry).
|
|
251
254
|
* Default `true`. Pass `false` when your own screen already has a header over chat (the web surface's `header`):
|
|
252
255
|
* the thread, the urgency banner and the composer are unchanged. Without the header, the history bar
|
|
253
|
-
* (`historyBar`) is the way into past chats.
|
|
256
|
+
* (`historyBar`) is the way into past chats; when you pass none, the chat draws its own ("Chats", "New chat").
|
|
254
257
|
*/
|
|
255
258
|
readonly header?: boolean;
|
|
256
259
|
/**
|