@everfur/sdk 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +112 -0
- package/dist/{Chat.d-CTVJ_qWQ.d.cts → Chat.d-CGuvQApZ.d.cts} +1 -1
- package/dist/{Chat.d-Bt0fKiOQ.d.ts → Chat.d-DQkMkRlv.d.ts} +1 -1
- package/dist/{DepthViews.d-BHb0Xb-C.d.cts → DepthViews.d-Bs79si_g.d.cts} +1 -1
- package/dist/{DepthViews.d-Dq8eWBvw.d.cts → DepthViews.d-C9HdQhC2.d.cts} +1 -1
- package/dist/{DepthViews.d-BW3HrhnC.d.ts → DepthViews.d-DrCO-wqQ.d.ts} +1 -1
- package/dist/{DepthViews.d-BIfqdrvX.d.ts → DepthViews.d-v8fVFY4g.d.ts} +1 -1
- package/dist/{LifecyclePort.d-Cr1p33a7.d.cts → LifecyclePort.d-Cb9NtmP-.d.cts} +5 -0
- package/dist/{LifecyclePort.d-Cr1p33a7.d.ts → LifecyclePort.d-Cb9NtmP-.d.ts} +5 -0
- package/dist/{RecordsPage.d-Bs-dghTH.d.ts → RecordsPage.d-BDZ8JRSw.d.ts} +1 -1
- package/dist/{RecordsPage.d-CLrw-AvZ.d.cts → RecordsPage.d-a_h8Hlxr.d.cts} +1 -1
- package/dist/animations/index.cjs +1 -1
- package/dist/animations/index.d.cts +3 -3
- package/dist/animations/index.d.ts +3 -3
- package/dist/animations/index.js +1 -1
- package/dist/{attachments.d-DTGYmW8Y.d.cts → attachments.d-DjwKMpb0.d.cts} +1 -1
- package/dist/{attachments.d-DjxmIsNp.d.ts → attachments.d-HxQiuR6k.d.ts} +1 -1
- package/dist/{bookingCopy.d-D952V8Tq.d.cts → bookingCopy.d-CX1IaYNX.d.cts} +2 -2
- package/dist/{bookingCopy.d-CX-DMiwi.d.ts → bookingCopy.d-DFhHqNkX.d.ts} +2 -2
- package/dist/{branding.d-SCzhpyTt.d.ts → branding.d-CNeG_CY3.d.ts} +7 -2
- package/dist/{branding.d-eGlNC86j.d.cts → branding.d-KOXyiUqX.d.cts} +7 -2
- package/dist/{casesRepository.d-bWJHZD-_.d.cts → casesRepository.d-BvHziaN3.d.cts} +1 -1
- package/dist/{casesRepository.d-CnJZlUZ4.d.ts → casesRepository.d-CsXp5ZbO.d.ts} +1 -1
- package/dist/chat/index.cjs +34 -34
- package/dist/chat/index.d.cts +11 -11
- package/dist/chat/index.d.ts +11 -11
- package/dist/chat/index.js +35 -35
- package/dist/chat/lite/index.cjs +34 -34
- package/dist/chat/lite/index.d.cts +11 -11
- package/dist/chat/lite/index.d.ts +11 -11
- package/dist/chat/lite/index.js +35 -35
- package/dist/{chatHandoffToken.d-BCEdhZpd.d.ts → chatHandoffToken.d-D8ziljrV.d.ts} +11 -6
- package/dist/{chatHandoffToken.d-uKnSnIzN.d.cts → chatHandoffToken.d-N8D7LgiG.d.cts} +11 -6
- package/dist/{chatTypes.d-DbdF3ij5.d.ts → checkin.d-C6v2akWa.d.ts} +69 -37
- package/dist/{chatTypes.d-CFyYBzps.d.cts → checkin.d-CVo0MpeG.d.cts} +69 -37
- package/dist/{chunk-LWPM4GD3.js → chunk-4YMKIILX.js} +5 -5
- package/dist/{chunk-ZZTNGAS7.js → chunk-D5AYE7FR.js} +3 -3
- package/dist/chunk-LFCCBV3J.js +47 -0
- package/dist/{chunk-5TWMQIT4.js → chunk-OMWBGNXK.js} +1 -1
- package/dist/client/index.cjs +21 -8
- package/dist/client/index.d.cts +83 -15
- package/dist/client/index.d.ts +83 -15
- package/dist/client/index.js +21 -8
- package/dist/{clinicBatch.d-C_kZtYt-.d.ts → clinicBatch.d-DUCpGy47.d.ts} +2 -2
- package/dist/{clinicBatch.d-e3Cn5HhA.d.cts → clinicBatch.d-h4AzQhUH.d.cts} +2 -2
- package/dist/{config.d--6siaeNg.d.ts → config.d-Ds1iysW4.d.ts} +20 -1
- package/dist/{config.d-Ba21AaZg.d.cts → config.d-DwLvHCYP.d.cts} +20 -1
- 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-Bl07_JGt.d.ts → context.d-CsoglkHv.d.ts} +6 -6
- package/dist/{context.d-CzMV_7jD.d.cts → context.d-_IdRcaaC.d.cts} +6 -6
- package/dist/{copy.d-GokMma80.d.ts → copy.d-CprpMJD2.d.ts} +2 -2
- package/dist/{copy.d-zWWCn3wB.d.cts → copy.d-Du3C9Itf.d.cts} +2 -2
- package/dist/core/index.cjs +15 -13
- package/dist/core/index.d.cts +18 -16
- package/dist/core/index.d.ts +18 -16
- package/dist/core/index.js +15 -13
- package/dist/{depth.d-C_HL8yAz.d.ts → depth.d-4CAnnHdv.d.ts} +2 -2
- package/dist/{depth.d-De5pT7vA.d.cts → depth.d-B45A8uzH.d.cts} +2 -2
- package/dist/{entitlementRepository.d-DLMRDNUe.d.ts → entitlementRepository.d-BVKx1U_k.d.ts} +4 -4
- package/dist/{entitlementRepository.d-B4ffomns.d.cts → entitlementRepository.d-Cp2ZU7pQ.d.cts} +4 -4
- package/dist/{focus.d-7G0BBmA9.d.ts → focus.d-BmER-Wo9.d.ts} +1 -1
- package/dist/{focus.d-B0qweva0.d.cts → focus.d-DkRwLTEB.d.cts} +1 -1
- package/dist/health-plan/index.cjs +14 -9
- package/dist/health-plan/index.d.cts +14 -14
- package/dist/health-plan/index.d.ts +14 -14
- package/dist/health-plan/index.js +14 -9
- package/dist/{healthPlanRepository.d-fPbLceBr.d.cts → healthPlanRepository.d-B3je3K9s.d.cts} +2 -2
- package/dist/{healthPlanRepository.d-CdCyUWph.d.ts → healthPlanRepository.d-D8a8n9Jj.d.ts} +2 -2
- package/dist/{idempotency.d-IDta7Jjj.d.cts → idempotency.d-CqQ4xvQT.d.cts} +1 -1
- package/dist/{idempotency.d-CoUlC-Yd.d.ts → idempotency.d-Cs5pjjdA.d.ts} +1 -1
- package/dist/{identity.d-B7dPRGqm.d.ts → identity.d-Bj7WLFXU.d.ts} +1 -1
- package/dist/{identity.d-_MK9Y7a4.d.cts → identity.d-Dg3l3zT5.d.cts} +1 -1
- package/dist/{inbox.d-CuuPTWyW.d.ts → inbox.d-DVfTwkEB.d.ts} +1 -1
- package/dist/{inbox.d-ChNXTovj.d.cts → inbox.d-DYCjhSnO.d.cts} +1 -1
- package/dist/index.cjs +45 -44
- package/dist/index.d.cts +20 -18
- package/dist/index.d.ts +20 -18
- package/dist/index.js +46 -45
- package/dist/{introEvents.d-D6Ay0ORN.d.ts → introEvents.d-CmC7ag_3.d.ts} +1 -1
- package/dist/{introEvents.d-JvAWRKYu.d.cts → introEvents.d-Wc0-QPLf.d.cts} +1 -1
- package/dist/{layout.d-D3d4QMeO.d.ts → layout.d-BZbIqvZ_.d.ts} +2 -2
- package/dist/{layout.d-ByfOEhpG.d.cts → layout.d-yLooG8Z0.d.cts} +2 -2
- package/dist/models.d-DHAQqrQr.d.ts +182 -0
- package/dist/models.d-Dml2f9-U.d.cts +182 -0
- package/dist/notifications/inbox/index.cjs +3 -3
- package/dist/notifications/inbox/index.d.cts +7 -7
- package/dist/notifications/inbox/index.d.ts +7 -7
- package/dist/notifications/inbox/index.js +3 -3
- package/dist/notifications/index.cjs +2 -2
- package/dist/notifications/index.d.cts +7 -7
- package/dist/notifications/index.d.ts +7 -7
- package/dist/notifications/index.js +2 -2
- package/dist/{optInView.d-BpFTJaaX.d.ts → optInView.d-B_yFAfKk.d.ts} +2 -2
- package/dist/{optInView.d-Bxvg0WLJ.d.cts → optInView.d-Td2Uv3iq.d.cts} +2 -2
- package/dist/parse.d-DtHmpAMT.d.cts +282 -0
- package/dist/parse.d-DtHmpAMT.d.ts +282 -0
- package/dist/{pets.d-BtbJcf8T.d.cts → pets.d-CE8_oDjM.d.cts} +1 -1
- package/dist/{pets.d-Br960ekh.d.ts → pets.d-UFpQT-q3.d.ts} +1 -1
- package/dist/{petsRepository.d-Bj9rPnCr.d.cts → petsRepository.d-BVSrxwKa.d.cts} +1 -1
- package/dist/{petsRepository.d-CSOth5XE.d.ts → petsRepository.d-BvmFXjTc.d.ts} +1 -1
- package/dist/photo/index.cjs +2 -2
- package/dist/photo/index.js +2 -2
- package/dist/records/depth/index.cjs +2 -2
- package/dist/records/depth/index.d.cts +9 -9
- package/dist/records/depth/index.d.ts +9 -9
- package/dist/records/depth/index.js +2 -2
- package/dist/records/index.cjs +4 -4
- package/dist/records/index.d.cts +11 -11
- package/dist/records/index.d.ts +11 -11
- package/dist/records/index.js +4 -4
- package/dist/{requestFunnel.d-LSnmCusf.d.ts → requestFunnel.d-D8UsEFed.d.ts} +2 -2
- package/dist/{requestFunnel.d-BwO-jFLX.d.cts → requestFunnel.d-fmBVWfsj.d.cts} +2 -2
- package/dist/{route.d-Bzyamuxa.d.ts → route.d-BnWvGpNN.d.ts} +2 -2
- package/dist/{route.d-D70-OHBc.d.cts → route.d-DOXnhbtt.d.cts} +2 -2
- package/dist/{runtimeTypes.d-6nkdToBS.d.cts → runtimeTypes.d-BlejmEU1.d.cts} +34 -6
- package/dist/{runtimeTypes.d-Byb55WsJ.d.ts → runtimeTypes.d-C6fYXNx2.d.ts} +34 -6
- package/dist/{screenProps.d-DB5IMaGZ.d.cts → screenProps.d-BfYg9Eaz.d.cts} +1 -1
- package/dist/{screenProps.d-HGSPNGHt.d.ts → screenProps.d-Bp0vHiov.d.ts} +1 -1
- package/dist/sdkConfigStore.d-BHrzkVpP.d.cts +45 -0
- package/dist/sdkConfigStore.d-VPvsIL8E.d.ts +45 -0
- package/dist/server/events/index.cjs +3 -2
- package/dist/server/events/index.d.cts +2 -2
- package/dist/server/events/index.d.ts +2 -2
- package/dist/server/events/index.js +3 -2
- package/dist/server/index.cjs +5 -4
- package/dist/server/index.d.cts +9 -3
- package/dist/server/index.d.ts +9 -3
- package/dist/server/index.js +5 -4
- package/dist/shop/index.cjs +12 -6
- package/dist/shop/index.d.cts +3 -3
- package/dist/shop/index.d.ts +3 -3
- package/dist/shop/index.js +13 -7
- package/dist/slots/index.cjs +15 -16
- package/dist/slots/index.d.cts +6 -6
- package/dist/slots/index.d.ts +6 -6
- package/dist/slots/index.js +15 -16
- package/dist/slots/weather-glyphs/index.cjs +1 -1
- package/dist/slots/weather-glyphs/index.js +1 -1
- package/dist/tabs/index.cjs +79 -13
- package/dist/tabs/index.d.cts +129 -10
- package/dist/tabs/index.d.ts +129 -10
- package/dist/tabs/index.js +79 -13
- package/dist/televet/booking/index.cjs +2 -2
- package/dist/televet/booking/index.d.cts +6 -6
- package/dist/televet/booking/index.d.ts +6 -6
- package/dist/televet/booking/index.js +2 -2
- package/dist/televet/index.cjs +2 -2
- package/dist/televet/index.js +2 -2
- package/dist/testing/index.cjs +4 -3
- package/dist/testing/index.d.cts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +4 -3
- package/dist/testing/rn/index.cjs +3 -3
- package/dist/testing/rn/index.d.cts +11 -9
- package/dist/testing/rn/index.d.ts +11 -9
- package/dist/testing/rn/index.js +3 -3
- package/dist/testing/web/index.cjs +2 -2
- package/dist/testing/web/index.d.cts +11 -9
- package/dist/testing/web/index.d.ts +11 -9
- package/dist/testing/web/index.js +2 -2
- package/dist/texting/index.cjs +4 -4
- package/dist/texting/index.d.cts +22 -8
- package/dist/texting/index.d.ts +22 -8
- package/dist/texting/index.js +4 -4
- package/dist/{threadOptions.d-E-ZxhUSg.d.cts → threadOptions.d-B9OndNS2.d.cts} +5 -5
- package/dist/{threadOptions.d-Cjps2yaN.d.ts → threadOptions.d-BlpnY5xP.d.ts} +5 -5
- package/dist/{timelineRows.d-CPS4admm.d.ts → timelineRows.d-BPOMlI-P.d.ts} +1 -1
- package/dist/{timelineRows.d-BJRCgmdv.d.cts → timelineRows.d-BmHu_XLI.d.cts} +1 -1
- package/dist/{tokens.d-DH1mYjZl.d.cts → tokens.d-DxM-tKjz.d.cts} +2 -0
- package/dist/{tokens.d-DH1mYjZl.d.ts → tokens.d-DxM-tKjz.d.ts} +2 -0
- package/dist/{typeStyle.d-CuKAr0Ly.d.cts → typeStyle.d-DmdB2TfH.d.cts} +2 -2
- package/dist/{typeStyle.d-ZszGrWPf.d.ts → typeStyle.d-Ma1uBgn-.d.ts} +2 -2
- package/dist/ui/index.cjs +5 -4
- package/dist/ui/index.js +5 -4
- package/dist/{useHealthPlanSubscription.d-SQfx-45x.d.ts → useHealthPlanSubscription.d-BAU8x02a.d.ts} +4 -4
- package/dist/{useHealthPlanSubscription.d-zjsvvlhz.d.cts → useHealthPlanSubscription.d-CuJMQc_d.d.cts} +4 -4
- package/dist/{useInboxUnread.d-BxFKFU4o.d.ts → useInboxUnread.d-BUpXjNnT.d.ts} +2 -2
- package/dist/{useInboxUnread.d-7p3IWs_A.d.cts → useInboxUnread.d-By1CkCy2.d.cts} +2 -2
- package/dist/{usePresentation.d-DUHlQyV5.d.cts → usePresentation.d-CgEJRm6Q.d.cts} +2 -2
- package/dist/{usePresentation.d-CoyGEJOl.d.ts → usePresentation.d-kSW7ttTl.d.ts} +2 -2
- package/dist/{useRecordsDepth.d-Bk8BSerZ.d.cts → useRecordsDepth.d-BHQgBRBw.d.cts} +1 -1
- package/dist/{useRecordsDepth.d-BinUa8W9.d.ts → useRecordsDepth.d-diEF_tFF.d.ts} +1 -1
- package/dist/{useUnread.d-D-p7oEW_.d.cts → useUnread.d-CoQKIHVD.d.cts} +31 -17
- package/dist/{useUnread.d-CFzIPmZt.d.ts → useUnread.d-aRej_wU8.d.ts} +31 -17
- package/dist/video/index.cjs +2 -2
- package/dist/video/index.js +2 -2
- package/dist/{view.d-CaH6dZPJ.d.ts → view.d-CevohC1l.d.ts} +3 -3
- package/dist/{view.d-DV4b1cov.d.cts → view.d-DgXlfcxR.d.cts} +3 -3
- package/dist/web/consent/index.cjs +2 -2
- package/dist/web/consent/index.d.cts +5 -5
- package/dist/web/consent/index.d.ts +5 -5
- package/dist/web/consent/index.js +2 -2
- package/dist/web/health-plan/index.cjs +11 -11
- package/dist/web/health-plan/index.d.cts +16 -16
- package/dist/web/health-plan/index.d.ts +16 -16
- package/dist/web/health-plan/index.js +7 -7
- package/dist/web/health-plan/styles.css +59 -0
- package/dist/web/inbox/index.cjs +3 -3
- package/dist/web/inbox/index.d.cts +8 -8
- package/dist/web/inbox/index.d.ts +8 -8
- package/dist/web/inbox/index.js +3 -3
- package/dist/web/index.cjs +52 -51
- package/dist/web/index.d.cts +59 -44
- package/dist/web/index.d.ts +59 -44
- package/dist/web/index.js +52 -51
- package/dist/web/intro/index.cjs +2 -2
- package/dist/web/intro/index.d.cts +7 -7
- package/dist/web/intro/index.d.ts +7 -7
- package/dist/web/intro/index.js +2 -2
- package/dist/web/notifications/index.cjs +2 -2
- package/dist/web/notifications/index.d.cts +6 -6
- package/dist/web/notifications/index.d.ts +6 -6
- package/dist/web/notifications/index.js +2 -2
- package/dist/web/records/depth/index.cjs +2 -2
- 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 +2 -2
- package/dist/web/records/index.cjs +4 -4
- package/dist/web/records/index.d.cts +11 -11
- package/dist/web/records/index.d.ts +11 -11
- package/dist/web/records/index.js +4 -4
- package/dist/web/records-sheet/index.cjs +4 -4
- package/dist/web/records-sheet/index.js +4 -4
- package/dist/web/shop/index.cjs +9 -9
- package/dist/web/shop/index.d.cts +3 -3
- package/dist/web/shop/index.d.ts +3 -3
- package/dist/web/shop/index.js +4 -4
- package/dist/web/televet/booking/index.cjs +2 -2
- package/dist/web/televet/booking/index.d.cts +7 -7
- package/dist/web/televet/booking/index.d.ts +7 -7
- package/dist/web/televet/booking/index.js +2 -2
- package/dist/web/televet/call/index.cjs +1 -1
- package/dist/web/televet/call/index.js +1 -1
- package/dist/web/televet/index.cjs +2 -2
- package/dist/web/televet/index.js +2 -2
- package/dist/web/texting/index.cjs +4 -4
- package/dist/web/texting/index.d.cts +22 -8
- package/dist/web/texting/index.d.ts +22 -8
- package/dist/web/texting/index.js +4 -4
- package/dist/web/ui/index.cjs +8 -8
- package/dist/web/ui/index.js +1 -1
- package/dist/web/ui/styles.css +66 -0
- package/package.json +10 -6
- package/dist/chunk-PDZTFXOO.js +0 -47
|
@@ -1,5 +1,5 @@
|
|
|
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 { a as HealthPlanPetWords, H as HealthPlanPage } from './focus.d-
|
|
2
|
+
import { a as HealthPlanPetWords, H as HealthPlanPage } from './focus.d-BmER-Wo9.js';
|
|
3
3
|
import { P as PetRef } from './ids.d-B2GAAifq.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
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 { a as HealthPlanPetWords, H as HealthPlanPage } from './focus.d-
|
|
2
|
+
import { a as HealthPlanPetWords, H as HealthPlanPage } from './focus.d-DkRwLTEB.cjs';
|
|
3
3
|
import { P as PetRef } from './ids.d-B2GAAifq.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { E as EverfurError } from './EverfurError.d-8NHtlgzA.js';
|
|
4
4
|
import { P as PetRef } from './ids.d-B2GAAifq.js';
|
|
5
|
-
import { H as HealthPlanItem, a as HealthPlan, b as HealthPlanRepository } from './healthPlanRepository.d-
|
|
6
|
-
import { L as LifecyclePort } from './LifecyclePort.d-
|
|
5
|
+
import { H as HealthPlanItem, a as HealthPlan, b as HealthPlanRepository } from './healthPlanRepository.d-D8a8n9Jj.js';
|
|
6
|
+
import { L as LifecyclePort } from './LifecyclePort.d-Cb9NtmP-.js';
|
|
7
7
|
|
|
8
8
|
type EverfurHealthPlanStatus = 'signedOut' | 'noPet' | 'loading' | 'failed' | 'empty' | 'ready';
|
|
9
9
|
/** The member's cart: the items in the plan, and their total when one can honestly be given. */
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { E as EverfurError } from './EverfurError.d-8NHtlgzA.cjs';
|
|
4
4
|
import { P as PetRef } from './ids.d-B2GAAifq.cjs';
|
|
5
|
-
import { H as HealthPlanItem, a as HealthPlan, b as HealthPlanRepository } from './healthPlanRepository.d-
|
|
6
|
-
import { L as LifecyclePort } from './LifecyclePort.d-
|
|
5
|
+
import { H as HealthPlanItem, a as HealthPlan, b as HealthPlanRepository } from './healthPlanRepository.d-B3je3K9s.cjs';
|
|
6
|
+
import { L as LifecyclePort } from './LifecyclePort.d-Cb9NtmP-.cjs';
|
|
7
7
|
|
|
8
8
|
type EverfurHealthPlanStatus = 'signedOut' | 'noPet' | 'loading' | 'failed' | 'empty' | 'ready';
|
|
9
9
|
/** The member's cart: the items in the plan, and their total when one can honestly be given. */
|
|
@@ -0,0 +1,182 @@
|
|
|
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 { a as SdkSettings, S as SdkConfigV3 } from './parse.d-DtHmpAMT.js';
|
|
3
|
+
|
|
4
|
+
type SdkNav = SdkSettings['layout.nav'];
|
|
5
|
+
type SdkSection = SdkSettings['layout.sections'][number];
|
|
6
|
+
type SdkVetOnAsk = SdkSettings['layout.vet_on_ask'];
|
|
7
|
+
type SdkVetBadge = SdkSettings['layout.vet_badge'];
|
|
8
|
+
type SdkPresentation = SdkSettings['layout.presentation'];
|
|
9
|
+
/** What the pet's state allows (fixed logic from our state data). */
|
|
10
|
+
type SdkVetLevel = 'visits' | 'wellness' | 'none';
|
|
11
|
+
/** The layout the shell draws. */
|
|
12
|
+
interface SdkLayout {
|
|
13
|
+
readonly nav: SdkNav;
|
|
14
|
+
/** The sections the nav shows as tabs, in order. Vet only when it is a tab and the pet's state allows it. */
|
|
15
|
+
readonly sections: readonly SdkSection[];
|
|
16
|
+
/** Where Vet is reached from Ask; `none` when there is no Vet to place (visits off, or the state allows none). */
|
|
17
|
+
readonly vetOnAsk: SdkVetOnAsk | 'none';
|
|
18
|
+
readonly vetBadge: SdkVetBadge;
|
|
19
|
+
readonly presentation: SdkPresentation;
|
|
20
|
+
readonly launcher: boolean;
|
|
21
|
+
/** Whether the header draws the close control (full screen) or the down arrow (chat first). */
|
|
22
|
+
readonly closeControl: 'none' | 'close' | 'down';
|
|
23
|
+
/** Values outside the combinations table that were folded, by key. Empty for every valid config. */
|
|
24
|
+
readonly adjusted: readonly string[];
|
|
25
|
+
}
|
|
26
|
+
/** The combinations rules a config breaks, one line each (check.py `layout_problems`). Empty when it is drawable. */
|
|
27
|
+
declare function layoutProblems(s: SdkSettings): readonly string[];
|
|
28
|
+
/** The level the pet's location allows: California visits, a wellness state advice, anywhere else none. */
|
|
29
|
+
declare function vetLevelFor(gate: {
|
|
30
|
+
readonly videoAndRx: readonly string[];
|
|
31
|
+
readonly adviceOnly: readonly string[];
|
|
32
|
+
}, location: SdkPetLocation | null | undefined): SdkVetLevel;
|
|
33
|
+
/** Where the pet lives, from the host: the US state, or the country outside the US. */
|
|
34
|
+
interface SdkPetLocation {
|
|
35
|
+
/** Two-letter US state code ("CA"). */
|
|
36
|
+
readonly state?: string;
|
|
37
|
+
/** ISO country code; absent reads as "US". */
|
|
38
|
+
readonly country?: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The layout to draw for a config and the pet's vet level. Vet appears only where visits are on and the pet's
|
|
42
|
+
* state allows a visit or advice; `chat_first` always keeps Ask; a value the table does not allow folds to the
|
|
43
|
+
* first one it does.
|
|
44
|
+
*/
|
|
45
|
+
declare function resolveLayout(s: SdkSettings, vetLevel: SdkVetLevel): SdkLayout;
|
|
46
|
+
|
|
47
|
+
/** Member or free, from the host (plan.sold_by partner) or our backend (everfur). Unknown reads as free. */
|
|
48
|
+
type SdkMembership = 'member' | 'free' | 'unknown';
|
|
49
|
+
type SdkLockable = SdkSettings['access.locked'][number];
|
|
50
|
+
/** What Ask shows for the person right now. */
|
|
51
|
+
type SdkAskAccess = {
|
|
52
|
+
readonly kind: 'open';
|
|
53
|
+
} | {
|
|
54
|
+
readonly kind: 'counter';
|
|
55
|
+
readonly left: number;
|
|
56
|
+
readonly cap: number;
|
|
57
|
+
readonly line: string;
|
|
58
|
+
} | {
|
|
59
|
+
readonly kind: 'cap_reached';
|
|
60
|
+
readonly cap: number;
|
|
61
|
+
} | {
|
|
62
|
+
readonly kind: 'members_only';
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Ask's gate. members_only: a non-member sees the members sheet. free_cap: a free user sees the counter over the
|
|
66
|
+
* message box until `used` reaches access.free_messages, then the plan sheet. A member is never gated.
|
|
67
|
+
*/
|
|
68
|
+
declare function askAccess(config: SdkConfigV3, membership: SdkMembership, used: number): SdkAskAccess;
|
|
69
|
+
/** True when a part is locked for this person: a free user (not a member) and the part is in access.locked. */
|
|
70
|
+
declare function isLocked(config: SdkConfigV3, membership: SdkMembership, part: SdkLockable): boolean;
|
|
71
|
+
/** The month a free-message count belongs to ("2026-11"), so the count resets on the 1st. */
|
|
72
|
+
declare function capMonth(now: Date): string;
|
|
73
|
+
interface SdkPlanSheet {
|
|
74
|
+
/** Which sheet: the plan (cap or locked part) or the members sheet. */
|
|
75
|
+
readonly kind: 'plan' | 'members';
|
|
76
|
+
/** The members sheet's title and badge; the plan sheet's cap line. Null where the sheet has none. */
|
|
77
|
+
readonly title: string | null;
|
|
78
|
+
readonly badge: string | null;
|
|
79
|
+
/** The price line(s), per plan.price_display; empty when hidden. */
|
|
80
|
+
readonly price: readonly string[];
|
|
81
|
+
/** The locked parts the plan sheet lists (fixed names). */
|
|
82
|
+
readonly locked: readonly string[];
|
|
83
|
+
readonly button: string;
|
|
84
|
+
readonly dismiss: string;
|
|
85
|
+
/** Who opens the checkout: our sheet (everfur) or the host's plan screen (partner). */
|
|
86
|
+
readonly soldBy: SdkSettings['plan.sold_by'];
|
|
87
|
+
}
|
|
88
|
+
/** A dollar price as units.currency writes it: "$15" or "US$15". */
|
|
89
|
+
declare function formatPrice(settings: SdkSettings, price: string): string;
|
|
90
|
+
/** The price lines: full "$144.99 a year"; monthly_equivalent "$8.33/month" over "Billed Annually"; hidden none. */
|
|
91
|
+
declare function priceLines(config: SdkConfigV3): readonly string[];
|
|
92
|
+
/** The plan sheet for the cap, or for a locked part. */
|
|
93
|
+
declare function planSheet(config: SdkConfigV3, pet?: string): SdkPlanSheet;
|
|
94
|
+
/** The members sheet a non-member sees (access.mode members_only). */
|
|
95
|
+
declare function membersSheet(config: SdkConfigV3): SdkPlanSheet;
|
|
96
|
+
/** The Vet tab's name: text.tabs.vet, or the fixed "Wellness" in a wellness state. */
|
|
97
|
+
declare function vetTabLabel(config: SdkConfigV3, level: SdkVetLevel): string;
|
|
98
|
+
interface SdkVetHome {
|
|
99
|
+
readonly level: SdkVetLevel;
|
|
100
|
+
readonly name: string;
|
|
101
|
+
/** The line under the name; null when vet.title is empty. */
|
|
102
|
+
readonly title: string | null;
|
|
103
|
+
/** The photo URL; null draws an initial (a named vet) or a plain person icon. */
|
|
104
|
+
readonly photo: string | null;
|
|
105
|
+
readonly initial: string | null;
|
|
106
|
+
readonly book: string;
|
|
107
|
+
readonly seeTimes: string;
|
|
108
|
+
/** "{left} of {visits} video visits left this year", when vet.visits_per_year is set and the count is known. */
|
|
109
|
+
readonly allowance: string | null;
|
|
110
|
+
/** "Extra visits are {price} each", when vet.extra_visit_price is set. */
|
|
111
|
+
readonly extra: string | null;
|
|
112
|
+
/** The where-you-live line. */
|
|
113
|
+
readonly gate: string | null;
|
|
114
|
+
/** The prescriptions line, where prescriptions are on and the state allows them. */
|
|
115
|
+
readonly rx: string | null;
|
|
116
|
+
readonly legal: readonly string[];
|
|
117
|
+
/** The separate-provider line, inside a partner only. */
|
|
118
|
+
readonly privacy: string | null;
|
|
119
|
+
}
|
|
120
|
+
/** Whether prescriptions show: the feature on, and the pet's state allows them (visits level). */
|
|
121
|
+
declare function prescriptionsAllowed(settings: SdkSettings, level: SdkVetLevel): boolean;
|
|
122
|
+
/** The Vet home's lines for a pet. */
|
|
123
|
+
declare function vetHome(config: SdkConfigV3, input: {
|
|
124
|
+
readonly level: SdkVetLevel;
|
|
125
|
+
readonly pet?: string;
|
|
126
|
+
readonly petSex?: string | null;
|
|
127
|
+
readonly stateName?: string;
|
|
128
|
+
readonly visitsUsed?: number | null;
|
|
129
|
+
}): SdkVetHome;
|
|
130
|
+
/** The booked page's "what happens next" lines (fixed), step 01 per features.texting. */
|
|
131
|
+
declare function bookedSteps(config: SdkConfigV3, pet?: string): readonly string[];
|
|
132
|
+
/** A weight held in pounds, written in units.weight ("47.1 lb", "21.4 kg"). */
|
|
133
|
+
declare function formatWeight(settings: SdkSettings, pounds: number): string;
|
|
134
|
+
/** A temperature held in Fahrenheit, written in units.temperature ("101.5 °F", "38.6 °C"). */
|
|
135
|
+
declare function formatTemperature(settings: SdkSettings, fahrenheit: number): string;
|
|
136
|
+
/** A distance held in miles, written in units.distance (Reference: not drawn this round). */
|
|
137
|
+
declare function formatDistance(settings: SdkSettings, miles: number): string;
|
|
138
|
+
/** The health status colors, the same in every skin (fixed list). */
|
|
139
|
+
declare const SDK_STATUS_COLORS: Readonly<{
|
|
140
|
+
brightGreen: "#07C168";
|
|
141
|
+
watchYellow: "#F2C763";
|
|
142
|
+
red: "#C03410";
|
|
143
|
+
amber: "#F2C763";
|
|
144
|
+
}>;
|
|
145
|
+
interface SdkSeverityLevel {
|
|
146
|
+
readonly label: string;
|
|
147
|
+
/** The level's color: the soft fill and the edge are drawn from it. */
|
|
148
|
+
readonly color: string;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* The banner's levels, lowest first, or null when layout.severity is off. Four: Good to know and Monitor at home
|
|
152
|
+
* in Bright Green, See a vet today in amber, Call a vet now in Red. Three: All clear and Monitor at home in Bright
|
|
153
|
+
* Green, See a vet now in Red.
|
|
154
|
+
*/
|
|
155
|
+
declare function severityLevels(config: SdkConfigV3): readonly SdkSeverityLevel[] | null;
|
|
156
|
+
/** The answer's urgency, as the chat reads it (general, monitor, schedule_soon, emergency). */
|
|
157
|
+
type SdkAnswerUrgency = 'general' | 'monitor' | 'schedule_soon' | 'emergency';
|
|
158
|
+
/** The banner level index an answer's urgency maps to, per the level set. */
|
|
159
|
+
declare function severityIndex(mode: SdkSettings['layout.severity'], urgency: SdkAnswerUrgency): number | null;
|
|
160
|
+
/** The banner for one answer: its label, color and body (the lowest level's fixed line, else the answer's summary). */
|
|
161
|
+
declare function severityBanner(config: SdkConfigV3, urgency: SdkAnswerUrgency, summary: string, pet?: string): {
|
|
162
|
+
readonly label: string;
|
|
163
|
+
readonly color: string;
|
|
164
|
+
readonly body: string;
|
|
165
|
+
} | null;
|
|
166
|
+
/** The words each chip draws in: look.color.heading, or white where white reads better (check.py chip_words). */
|
|
167
|
+
declare function chipInk(chip: string, heading: string): string;
|
|
168
|
+
/** Your message's words on look.color.bubble: white or look.color.ink, whichever reads better. */
|
|
169
|
+
declare function bubbleInk(bubble: string, ink: string): string;
|
|
170
|
+
/** The fill of a main button: look.color.primary, or look.color.heading when the primary is within 1.3:1 of the ground. */
|
|
171
|
+
declare function buttonFill(settings: SdkSettings): {
|
|
172
|
+
readonly fill: string;
|
|
173
|
+
readonly ink: string;
|
|
174
|
+
};
|
|
175
|
+
/** The lines under the message box: the emergency line, and inside a partner the privacy line. */
|
|
176
|
+
declare function askFootLines(config: SdkConfigV3): readonly string[];
|
|
177
|
+
/** The memory chip's words, or null when layout.memory_chip is off. */
|
|
178
|
+
declare function memoryChip(config: SdkConfigV3, pet?: string): string | null;
|
|
179
|
+
/** The partner-data sources Records lists (fixed names), in the config's order. */
|
|
180
|
+
declare function partnerDataSources(config: SdkConfigV3): readonly string[];
|
|
181
|
+
|
|
182
|
+
export { isLocked as A, layoutProblems as B, membersSheet as C, memoryChip as D, partnerDataSources as E, planSheet as F, prescriptionsAllowed as G, priceLines as H, resolveLayout as I, severityBanner as J, severityIndex as K, severityLevels as L, vetHome as M, vetLevelFor as N, vetTabLabel as O, SDK_STATUS_COLORS as S, type SdkAnswerUrgency as a, type SdkAskAccess as b, type SdkLayout as c, type SdkLockable as d, type SdkMembership as e, type SdkNav as f, type SdkPetLocation as g, type SdkPlanSheet as h, type SdkPresentation as i, type SdkSection as j, type SdkSeverityLevel as k, type SdkVetBadge as l, type SdkVetHome as m, type SdkVetLevel as n, type SdkVetOnAsk as o, askAccess as p, askFootLines as q, bookedSteps as r, bubbleInk as s, buttonFill as t, capMonth as u, chipInk as v, formatDistance as w, formatPrice as x, formatTemperature as y, formatWeight as z };
|
|
@@ -0,0 +1,182 @@
|
|
|
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 { a as SdkSettings, S as SdkConfigV3 } from './parse.d-DtHmpAMT.cjs';
|
|
3
|
+
|
|
4
|
+
type SdkNav = SdkSettings['layout.nav'];
|
|
5
|
+
type SdkSection = SdkSettings['layout.sections'][number];
|
|
6
|
+
type SdkVetOnAsk = SdkSettings['layout.vet_on_ask'];
|
|
7
|
+
type SdkVetBadge = SdkSettings['layout.vet_badge'];
|
|
8
|
+
type SdkPresentation = SdkSettings['layout.presentation'];
|
|
9
|
+
/** What the pet's state allows (fixed logic from our state data). */
|
|
10
|
+
type SdkVetLevel = 'visits' | 'wellness' | 'none';
|
|
11
|
+
/** The layout the shell draws. */
|
|
12
|
+
interface SdkLayout {
|
|
13
|
+
readonly nav: SdkNav;
|
|
14
|
+
/** The sections the nav shows as tabs, in order. Vet only when it is a tab and the pet's state allows it. */
|
|
15
|
+
readonly sections: readonly SdkSection[];
|
|
16
|
+
/** Where Vet is reached from Ask; `none` when there is no Vet to place (visits off, or the state allows none). */
|
|
17
|
+
readonly vetOnAsk: SdkVetOnAsk | 'none';
|
|
18
|
+
readonly vetBadge: SdkVetBadge;
|
|
19
|
+
readonly presentation: SdkPresentation;
|
|
20
|
+
readonly launcher: boolean;
|
|
21
|
+
/** Whether the header draws the close control (full screen) or the down arrow (chat first). */
|
|
22
|
+
readonly closeControl: 'none' | 'close' | 'down';
|
|
23
|
+
/** Values outside the combinations table that were folded, by key. Empty for every valid config. */
|
|
24
|
+
readonly adjusted: readonly string[];
|
|
25
|
+
}
|
|
26
|
+
/** The combinations rules a config breaks, one line each (check.py `layout_problems`). Empty when it is drawable. */
|
|
27
|
+
declare function layoutProblems(s: SdkSettings): readonly string[];
|
|
28
|
+
/** The level the pet's location allows: California visits, a wellness state advice, anywhere else none. */
|
|
29
|
+
declare function vetLevelFor(gate: {
|
|
30
|
+
readonly videoAndRx: readonly string[];
|
|
31
|
+
readonly adviceOnly: readonly string[];
|
|
32
|
+
}, location: SdkPetLocation | null | undefined): SdkVetLevel;
|
|
33
|
+
/** Where the pet lives, from the host: the US state, or the country outside the US. */
|
|
34
|
+
interface SdkPetLocation {
|
|
35
|
+
/** Two-letter US state code ("CA"). */
|
|
36
|
+
readonly state?: string;
|
|
37
|
+
/** ISO country code; absent reads as "US". */
|
|
38
|
+
readonly country?: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The layout to draw for a config and the pet's vet level. Vet appears only where visits are on and the pet's
|
|
42
|
+
* state allows a visit or advice; `chat_first` always keeps Ask; a value the table does not allow folds to the
|
|
43
|
+
* first one it does.
|
|
44
|
+
*/
|
|
45
|
+
declare function resolveLayout(s: SdkSettings, vetLevel: SdkVetLevel): SdkLayout;
|
|
46
|
+
|
|
47
|
+
/** Member or free, from the host (plan.sold_by partner) or our backend (everfur). Unknown reads as free. */
|
|
48
|
+
type SdkMembership = 'member' | 'free' | 'unknown';
|
|
49
|
+
type SdkLockable = SdkSettings['access.locked'][number];
|
|
50
|
+
/** What Ask shows for the person right now. */
|
|
51
|
+
type SdkAskAccess = {
|
|
52
|
+
readonly kind: 'open';
|
|
53
|
+
} | {
|
|
54
|
+
readonly kind: 'counter';
|
|
55
|
+
readonly left: number;
|
|
56
|
+
readonly cap: number;
|
|
57
|
+
readonly line: string;
|
|
58
|
+
} | {
|
|
59
|
+
readonly kind: 'cap_reached';
|
|
60
|
+
readonly cap: number;
|
|
61
|
+
} | {
|
|
62
|
+
readonly kind: 'members_only';
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Ask's gate. members_only: a non-member sees the members sheet. free_cap: a free user sees the counter over the
|
|
66
|
+
* message box until `used` reaches access.free_messages, then the plan sheet. A member is never gated.
|
|
67
|
+
*/
|
|
68
|
+
declare function askAccess(config: SdkConfigV3, membership: SdkMembership, used: number): SdkAskAccess;
|
|
69
|
+
/** True when a part is locked for this person: a free user (not a member) and the part is in access.locked. */
|
|
70
|
+
declare function isLocked(config: SdkConfigV3, membership: SdkMembership, part: SdkLockable): boolean;
|
|
71
|
+
/** The month a free-message count belongs to ("2026-11"), so the count resets on the 1st. */
|
|
72
|
+
declare function capMonth(now: Date): string;
|
|
73
|
+
interface SdkPlanSheet {
|
|
74
|
+
/** Which sheet: the plan (cap or locked part) or the members sheet. */
|
|
75
|
+
readonly kind: 'plan' | 'members';
|
|
76
|
+
/** The members sheet's title and badge; the plan sheet's cap line. Null where the sheet has none. */
|
|
77
|
+
readonly title: string | null;
|
|
78
|
+
readonly badge: string | null;
|
|
79
|
+
/** The price line(s), per plan.price_display; empty when hidden. */
|
|
80
|
+
readonly price: readonly string[];
|
|
81
|
+
/** The locked parts the plan sheet lists (fixed names). */
|
|
82
|
+
readonly locked: readonly string[];
|
|
83
|
+
readonly button: string;
|
|
84
|
+
readonly dismiss: string;
|
|
85
|
+
/** Who opens the checkout: our sheet (everfur) or the host's plan screen (partner). */
|
|
86
|
+
readonly soldBy: SdkSettings['plan.sold_by'];
|
|
87
|
+
}
|
|
88
|
+
/** A dollar price as units.currency writes it: "$15" or "US$15". */
|
|
89
|
+
declare function formatPrice(settings: SdkSettings, price: string): string;
|
|
90
|
+
/** The price lines: full "$144.99 a year"; monthly_equivalent "$8.33/month" over "Billed Annually"; hidden none. */
|
|
91
|
+
declare function priceLines(config: SdkConfigV3): readonly string[];
|
|
92
|
+
/** The plan sheet for the cap, or for a locked part. */
|
|
93
|
+
declare function planSheet(config: SdkConfigV3, pet?: string): SdkPlanSheet;
|
|
94
|
+
/** The members sheet a non-member sees (access.mode members_only). */
|
|
95
|
+
declare function membersSheet(config: SdkConfigV3): SdkPlanSheet;
|
|
96
|
+
/** The Vet tab's name: text.tabs.vet, or the fixed "Wellness" in a wellness state. */
|
|
97
|
+
declare function vetTabLabel(config: SdkConfigV3, level: SdkVetLevel): string;
|
|
98
|
+
interface SdkVetHome {
|
|
99
|
+
readonly level: SdkVetLevel;
|
|
100
|
+
readonly name: string;
|
|
101
|
+
/** The line under the name; null when vet.title is empty. */
|
|
102
|
+
readonly title: string | null;
|
|
103
|
+
/** The photo URL; null draws an initial (a named vet) or a plain person icon. */
|
|
104
|
+
readonly photo: string | null;
|
|
105
|
+
readonly initial: string | null;
|
|
106
|
+
readonly book: string;
|
|
107
|
+
readonly seeTimes: string;
|
|
108
|
+
/** "{left} of {visits} video visits left this year", when vet.visits_per_year is set and the count is known. */
|
|
109
|
+
readonly allowance: string | null;
|
|
110
|
+
/** "Extra visits are {price} each", when vet.extra_visit_price is set. */
|
|
111
|
+
readonly extra: string | null;
|
|
112
|
+
/** The where-you-live line. */
|
|
113
|
+
readonly gate: string | null;
|
|
114
|
+
/** The prescriptions line, where prescriptions are on and the state allows them. */
|
|
115
|
+
readonly rx: string | null;
|
|
116
|
+
readonly legal: readonly string[];
|
|
117
|
+
/** The separate-provider line, inside a partner only. */
|
|
118
|
+
readonly privacy: string | null;
|
|
119
|
+
}
|
|
120
|
+
/** Whether prescriptions show: the feature on, and the pet's state allows them (visits level). */
|
|
121
|
+
declare function prescriptionsAllowed(settings: SdkSettings, level: SdkVetLevel): boolean;
|
|
122
|
+
/** The Vet home's lines for a pet. */
|
|
123
|
+
declare function vetHome(config: SdkConfigV3, input: {
|
|
124
|
+
readonly level: SdkVetLevel;
|
|
125
|
+
readonly pet?: string;
|
|
126
|
+
readonly petSex?: string | null;
|
|
127
|
+
readonly stateName?: string;
|
|
128
|
+
readonly visitsUsed?: number | null;
|
|
129
|
+
}): SdkVetHome;
|
|
130
|
+
/** The booked page's "what happens next" lines (fixed), step 01 per features.texting. */
|
|
131
|
+
declare function bookedSteps(config: SdkConfigV3, pet?: string): readonly string[];
|
|
132
|
+
/** A weight held in pounds, written in units.weight ("47.1 lb", "21.4 kg"). */
|
|
133
|
+
declare function formatWeight(settings: SdkSettings, pounds: number): string;
|
|
134
|
+
/** A temperature held in Fahrenheit, written in units.temperature ("101.5 °F", "38.6 °C"). */
|
|
135
|
+
declare function formatTemperature(settings: SdkSettings, fahrenheit: number): string;
|
|
136
|
+
/** A distance held in miles, written in units.distance (Reference: not drawn this round). */
|
|
137
|
+
declare function formatDistance(settings: SdkSettings, miles: number): string;
|
|
138
|
+
/** The health status colors, the same in every skin (fixed list). */
|
|
139
|
+
declare const SDK_STATUS_COLORS: Readonly<{
|
|
140
|
+
brightGreen: "#07C168";
|
|
141
|
+
watchYellow: "#F2C763";
|
|
142
|
+
red: "#C03410";
|
|
143
|
+
amber: "#F2C763";
|
|
144
|
+
}>;
|
|
145
|
+
interface SdkSeverityLevel {
|
|
146
|
+
readonly label: string;
|
|
147
|
+
/** The level's color: the soft fill and the edge are drawn from it. */
|
|
148
|
+
readonly color: string;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* The banner's levels, lowest first, or null when layout.severity is off. Four: Good to know and Monitor at home
|
|
152
|
+
* in Bright Green, See a vet today in amber, Call a vet now in Red. Three: All clear and Monitor at home in Bright
|
|
153
|
+
* Green, See a vet now in Red.
|
|
154
|
+
*/
|
|
155
|
+
declare function severityLevels(config: SdkConfigV3): readonly SdkSeverityLevel[] | null;
|
|
156
|
+
/** The answer's urgency, as the chat reads it (general, monitor, schedule_soon, emergency). */
|
|
157
|
+
type SdkAnswerUrgency = 'general' | 'monitor' | 'schedule_soon' | 'emergency';
|
|
158
|
+
/** The banner level index an answer's urgency maps to, per the level set. */
|
|
159
|
+
declare function severityIndex(mode: SdkSettings['layout.severity'], urgency: SdkAnswerUrgency): number | null;
|
|
160
|
+
/** The banner for one answer: its label, color and body (the lowest level's fixed line, else the answer's summary). */
|
|
161
|
+
declare function severityBanner(config: SdkConfigV3, urgency: SdkAnswerUrgency, summary: string, pet?: string): {
|
|
162
|
+
readonly label: string;
|
|
163
|
+
readonly color: string;
|
|
164
|
+
readonly body: string;
|
|
165
|
+
} | null;
|
|
166
|
+
/** The words each chip draws in: look.color.heading, or white where white reads better (check.py chip_words). */
|
|
167
|
+
declare function chipInk(chip: string, heading: string): string;
|
|
168
|
+
/** Your message's words on look.color.bubble: white or look.color.ink, whichever reads better. */
|
|
169
|
+
declare function bubbleInk(bubble: string, ink: string): string;
|
|
170
|
+
/** The fill of a main button: look.color.primary, or look.color.heading when the primary is within 1.3:1 of the ground. */
|
|
171
|
+
declare function buttonFill(settings: SdkSettings): {
|
|
172
|
+
readonly fill: string;
|
|
173
|
+
readonly ink: string;
|
|
174
|
+
};
|
|
175
|
+
/** The lines under the message box: the emergency line, and inside a partner the privacy line. */
|
|
176
|
+
declare function askFootLines(config: SdkConfigV3): readonly string[];
|
|
177
|
+
/** The memory chip's words, or null when layout.memory_chip is off. */
|
|
178
|
+
declare function memoryChip(config: SdkConfigV3, pet?: string): string | null;
|
|
179
|
+
/** The partner-data sources Records lists (fixed names), in the config's order. */
|
|
180
|
+
declare function partnerDataSources(config: SdkConfigV3): readonly string[];
|
|
181
|
+
|
|
182
|
+
export { isLocked as A, layoutProblems as B, membersSheet as C, memoryChip as D, partnerDataSources as E, planSheet as F, prescriptionsAllowed as G, priceLines as H, resolveLayout as I, severityBanner as J, severityIndex as K, severityLevels as L, vetHome as M, vetLevelFor as N, vetTabLabel as O, SDK_STATUS_COLORS as S, type SdkAnswerUrgency as a, type SdkAskAccess as b, type SdkLayout as c, type SdkLockable as d, type SdkMembership as e, type SdkNav as f, type SdkPetLocation as g, type SdkPlanSheet as h, type SdkPresentation as i, type SdkSection as j, type SdkSeverityLevel as k, type SdkVetBadge as l, type SdkVetHome as m, type SdkVetLevel as n, type SdkVetOnAsk as o, askAccess as p, askFootLines as q, bookedSteps as r, bubbleInk as s, buttonFill as t, capMonth as u, chipInk as v, formatDistance as w, formatPrice as x, formatTemperature as y, formatWeight as z };
|