@everfur/sdk 0.16.0 → 0.17.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 +157 -0
- package/README.md +3 -1
- package/chat/lite/package.json +8 -0
- package/dist/Chat.d-BYY1U61e.d.cts +11 -0
- package/dist/Chat.d-uETscjrL.d.ts +11 -0
- package/dist/{DepthViews.d-A7S-XYiI.d.ts → DepthViews.d-B4SE5GUD.d.ts} +1 -1
- package/dist/{DepthViews.d-CNjaHLAS.d.ts → DepthViews.d-BsZ73mzL.d.ts} +1 -1
- package/dist/{DepthViews.d-C4TIZDfz.d.cts → DepthViews.d-DL8MP_kA.d.cts} +1 -1
- package/dist/{DepthViews.d-DapfRz1S.d.cts → DepthViews.d-D_Qp4glO.d.cts} +1 -1
- package/dist/{RecordsPage.d-B2gLf8RH.d.cts → RecordsPage.d-CYotk2R9.d.cts} +1 -1
- package/dist/{RecordsPage.d-6WMbieaV.d.ts → RecordsPage.d-D4gP4leq.d.ts} +1 -1
- package/dist/animations/index.d.cts +3 -3
- package/dist/animations/index.d.ts +3 -3
- package/dist/{appStateLifecycle.d-B7L427MF.d.ts → appStateLifecycle.d-CXJzBS3c.d.ts} +6 -11
- package/dist/{appStateLifecycle.d-CWedOJq4.d.cts → appStateLifecycle.d-DJXdDOJY.d.cts} +6 -11
- package/dist/attachmentTransport.d-Syrvv5zH.d.ts +41 -0
- package/dist/attachmentTransport.d-r1XCCdUB.d.cts +41 -0
- package/dist/{attachments.d-BARh-PrJ.d.cts → attachments.d-B8kOCb6q.d.cts} +5 -5
- package/dist/{attachments.d-CB0R1_vK.d.ts → attachments.d-BTIGzXWD.d.ts} +5 -5
- package/dist/{attachments.d-CPgp4_W-.d.ts → attachments.d-BgatKf7d.d.ts} +2 -2
- package/dist/{attachments.d-DeoaCEMD.d.cts → attachments.d-C61URT8r.d.cts} +2 -2
- package/dist/{bookingCopy.d-CVmpuk9C.d.cts → bookingCopy.d-B-bSYgqS.d.cts} +2 -2
- package/dist/{bookingCopy.d-BakTjvWw.d.ts → bookingCopy.d-JQW2SLM-.d.ts} +2 -2
- package/dist/{casesRepository.d-CuokarTU.d.ts → casesRepository.d-CHEjzT4h.d.ts} +1 -1
- package/dist/{casesRepository.d-DKRLtYb8.d.cts → casesRepository.d-CVG2EXcg.d.cts} +1 -1
- package/dist/chat/index.cjs +32 -31
- package/dist/chat/index.d.cts +16 -51
- package/dist/chat/index.d.ts +16 -51
- package/dist/chat/index.js +32 -31
- package/dist/chat/lite/index.cjs +430 -0
- package/dist/chat/lite/index.d.cts +35 -0
- package/dist/chat/lite/index.d.ts +35 -0
- package/dist/chat/lite/index.js +430 -0
- package/dist/client/index.cjs +4 -4
- package/dist/client/index.d.cts +6 -6
- package/dist/client/index.d.ts +6 -6
- package/dist/client/index.js +4 -4
- package/dist/{clinicBatch.d-BTDdhMQ2.d.cts → clinicBatch.d-DdlFy4pD.d.cts} +2 -2
- package/dist/{clinicBatch.d-BP_Rpvcy.d.ts → clinicBatch.d-oNwH_dbI.d.ts} +2 -2
- package/dist/{config.d-84fNJFv9.d.cts → config.d-Cy_hJBJG.d.cts} +1 -1
- package/dist/{config.d-B4-Mrwq2.d.ts → config.d-DopRLD4f.d.ts} +1 -1
- package/dist/consent/index.d.cts +5 -5
- package/dist/consent/index.d.ts +5 -5
- package/dist/{context.d-rNGMZH8T.d.ts → context.d-Ban-Hhqu.d.ts} +5 -5
- package/dist/{context.d-87MMrNm6.d.cts → context.d-C42juGn6.d.cts} +5 -5
- package/dist/{copy.d-CJOLhJac.d.cts → copy.d-BTS5l6Ri.d.cts} +2 -2
- package/dist/{copy.d-DbwWriBp.d.ts → copy.d-qdbygul9.d.ts} +2 -2
- package/dist/core/index.cjs +10 -10
- package/dist/core/index.d.cts +13 -13
- package/dist/core/index.d.ts +13 -13
- package/dist/core/index.js +10 -10
- package/dist/{depth.d-Dca1T_RH.d.ts → depth.d-BGkHm2Se.d.ts} +2 -2
- package/dist/{depth.d-CXpPxNSK.d.cts → depth.d-BfVrhq9o.d.cts} +2 -2
- package/dist/{entitlementRepository.d-BBRYTUlp.d.ts → entitlementRepository.d-CjwqCyhS.d.ts} +2 -2
- package/dist/{entitlementRepository.d-DBhzBQjZ.d.cts → entitlementRepository.d-npT7L_7_.d.cts} +2 -2
- package/dist/{focus.d-BQnOVAql.d.cts → focus.d-DS7Ze1Pp.d.cts} +2 -2
- package/dist/{focus.d-BZ2sEpbU.d.ts → focus.d-S0nq_k1A.d.ts} +2 -2
- package/dist/health-plan/index.cjs +7 -7
- package/dist/health-plan/index.d.cts +10 -10
- package/dist/health-plan/index.d.ts +10 -10
- package/dist/health-plan/index.js +7 -7
- package/dist/{idempotency.d-9wNNohIA.d.cts → idempotency.d-COIrwuCb.d.ts} +334 -3
- package/dist/{idempotency.d-BdB17veP.d.ts → idempotency.d-gfiN4Qnp.d.cts} +334 -3
- package/dist/{identity.d-DxNvhj3a.d.ts → identity.d-B3mFvvRq.d.ts} +1 -1
- package/dist/{identity.d-nRZBzkG2.d.cts → identity.d-D76vXtkJ.d.cts} +1 -1
- package/dist/index.cjs +29 -28
- package/dist/index.d.cts +15 -14
- package/dist/index.d.ts +15 -14
- package/dist/index.js +29 -28
- package/dist/{introEvents.d-CQeiUeLn.d.cts → introEvents.d-3FLEemX3.d.cts} +1 -1
- package/dist/{introEvents.d-bkIxpIKr.d.ts → introEvents.d-BYnr37bd.d.ts} +1 -1
- package/dist/notifications/index.d.cts +4 -4
- package/dist/notifications/index.d.ts +4 -4
- package/dist/{optInView.d-DVJcB4Gp.d.ts → optInView.d-BqFMcum4.d.ts} +2 -2
- package/dist/{optInView.d-BbVUUeoG.d.cts → optInView.d-DXRUGDiD.d.cts} +2 -2
- package/dist/{parse.d-CGeJrcAC.d.ts → parse.d-CY22hFxb.d.ts} +1 -1
- package/dist/{parse.d-Dk0BasyK.d.cts → parse.d-rvA_aRSO.d.cts} +1 -1
- package/dist/{pets.d-DBopbeRe.d.ts → pets.d-Cicz-aIO.d.ts} +1 -1
- package/dist/{pets.d-DVptPgi0.d.cts → pets.d-RoHTZsaV.d.cts} +1 -1
- package/dist/{petsRepository.d-Daef7u0o.d.cts → petsRepository.d-BxMyt6Aj.d.cts} +1 -1
- package/dist/{petsRepository.d-BtuooSOW.d.ts → petsRepository.d-DtAZf_Ja.d.ts} +1 -1
- package/dist/photo/index.cjs +2 -2
- package/dist/photo/index.js +2 -2
- package/dist/{ports.d-CAT70bVD.d.cts → ports.d-D7cjFUoL.d.cts} +4 -4
- package/dist/{ports.d-BxCVSbSi.d.ts → ports.d-DrgKa73F.d.ts} +4 -4
- package/dist/records/depth/index.cjs +9 -9
- package/dist/records/depth/index.d.cts +9 -9
- package/dist/records/depth/index.d.ts +9 -9
- package/dist/records/depth/index.js +9 -9
- package/dist/records/index.cjs +13 -13
- package/dist/records/index.d.cts +10 -10
- package/dist/records/index.d.ts +10 -10
- package/dist/records/index.js +13 -13
- package/dist/{requestFunnel.d-Cxt0JqYx.d.ts → requestFunnel.d-B5y7Py8Z.d.ts} +2 -2
- package/dist/{requestFunnel.d-mEu6B-n8.d.cts → requestFunnel.d-BdQf53zs.d.cts} +2 -2
- package/dist/{runtimeTypes.d-Bkcj_XQy.d.ts → runtimeTypes.d-D5EDgS3Y.d.ts} +4 -4
- package/dist/{runtimeTypes.d-D_qHJROH.d.cts → runtimeTypes.d-r4Q5vASZ.d.cts} +4 -4
- package/dist/{screenProps.d-D9n-ancr.d.ts → screenProps.d-KLCrP43b.d.ts} +1 -1
- package/dist/{screenProps.d-CR1lrpzR.d.cts → screenProps.d-v4a4kzxA.d.cts} +1 -1
- package/dist/server/events/index.cjs +3 -3
- package/dist/server/events/index.d.cts +72 -6
- package/dist/server/events/index.d.ts +72 -6
- package/dist/server/events/index.js +3 -3
- package/dist/server/index.cjs +2 -2
- package/dist/server/index.d.cts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +2 -2
- package/dist/shop/index.cjs +212 -163
- package/dist/shop/index.d.cts +38 -4
- package/dist/shop/index.d.ts +38 -4
- package/dist/shop/index.js +214 -165
- package/dist/shop/orders-v2/index.cjs +127 -0
- package/dist/shop/orders-v2/index.d.cts +7 -0
- package/dist/shop/orders-v2/index.d.ts +7 -0
- package/dist/shop/orders-v2/index.js +127 -0
- package/dist/tabs/index.d.cts +8 -8
- package/dist/tabs/index.d.ts +8 -8
- 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/call/index.cjs +1 -1
- package/dist/televet/call/index.js +1 -1
- package/dist/televet/index.cjs +4 -3
- package/dist/televet/index.d.cts +1 -0
- package/dist/televet/index.d.ts +1 -0
- package/dist/televet/index.js +5 -4
- package/dist/testing/index.d.cts +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/rn/index.d.cts +7 -7
- package/dist/testing/rn/index.d.ts +7 -7
- package/dist/testing/web/index.d.cts +7 -7
- package/dist/testing/web/index.d.ts +7 -7
- package/dist/texting/index.d.cts +5 -5
- package/dist/texting/index.d.ts +5 -5
- package/dist/{threadOptions.d-BEG-LZrC.d.cts → threadOptions.d-B0folrKm.d.cts} +1 -1
- package/dist/{threadOptions.d-BgBvSIw8.d.ts → threadOptions.d-Crh_LiDe.d.ts} +3 -3
- package/dist/{threadOptions.d-BerQM1Ql.d.ts → threadOptions.d-DTsJFkL-.d.ts} +1 -1
- package/dist/{threadOptions.d-P9v7I7va.d.cts → threadOptions.d-EFJaNBP1.d.cts} +3 -3
- package/dist/{threadOptions.d-6hfQS1x7.d.cts → threadOptions.d-GPJPprkn.d.cts} +1 -1
- package/dist/{threadOptions.d-6hfQS1x7.d.ts → threadOptions.d-GPJPprkn.d.ts} +1 -1
- package/dist/{timelineRows.d-C04lp_Vj.d.cts → timelineRows.d-6-Cw8xGd.d.cts} +1 -1
- package/dist/{timelineRows.d-_7JemrY-.d.ts → timelineRows.d-DpSis9HR.d.ts} +1 -1
- package/dist/{useHealthPlanSubscription.d-CUbHE6eK.d.ts → useHealthPlanSubscription.d-DD30EkUR.d.ts} +3 -3
- package/dist/{useHealthPlanSubscription.d-OhLZpn-n.d.cts → useHealthPlanSubscription.d-DWrzUXf4.d.cts} +3 -3
- package/dist/{usePresentation.d-YkJeq9mf.d.cts → usePresentation.d-C8rqY56C.d.cts} +1 -1
- package/dist/{usePresentation.d-CBtBx38t.d.ts → usePresentation.d-CRG3Gaaq.d.ts} +1 -1
- package/dist/{useRecordsDepth.d-FTImzp6T.d.cts → useRecordsDepth.d-BYk7m7gF.d.cts} +1 -1
- package/dist/{useRecordsDepth.d-_rqDIvoq.d.ts → useRecordsDepth.d-DlRda5jp.d.ts} +1 -1
- package/dist/video/index.cjs +2 -2
- package/dist/video/index.js +2 -2
- package/dist/view.d-B31M8rCG.d.cts +11 -0
- package/dist/view.d-B31M8rCG.d.ts +11 -0
- package/dist/{view.d-Dd6AfMvG.d.cts → view.d-CLpEHKOp.d.cts} +3 -3
- package/dist/{view.d-gmYinlac.d.ts → view.d-DuIXHr08.d.ts} +3 -3
- package/dist/web/consent/index.d.cts +5 -5
- package/dist/web/consent/index.d.ts +5 -5
- package/dist/web/health-plan/index.cjs +4 -4
- package/dist/web/health-plan/index.d.cts +12 -12
- package/dist/web/health-plan/index.d.ts +12 -12
- package/dist/web/health-plan/index.js +4 -4
- package/dist/web/index.cjs +4 -4
- package/dist/web/index.d.cts +23 -23
- package/dist/web/index.d.ts +23 -23
- package/dist/web/index.js +4 -4
- package/dist/web/intro/index.d.cts +6 -6
- package/dist/web/intro/index.d.ts +6 -6
- package/dist/web/notifications/index.d.cts +3 -3
- package/dist/web/notifications/index.d.ts +3 -3
- package/dist/web/records/depth/index.cjs +9 -9
- 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 +9 -9
- package/dist/web/records/index.cjs +12 -12
- package/dist/web/records/index.d.cts +11 -11
- package/dist/web/records/index.d.ts +11 -11
- package/dist/web/records/index.js +12 -12
- package/dist/web/records-sheet/index.cjs +9 -9
- package/dist/web/records-sheet/index.js +9 -9
- package/dist/web/shop/index.cjs +194 -50
- package/dist/web/shop/index.d.cts +32 -4
- package/dist/web/shop/index.d.ts +32 -4
- package/dist/web/shop/index.js +194 -50
- package/dist/web/shop/orders-v2/index.cjs +124 -0
- package/dist/web/shop/orders-v2/index.d.cts +14 -0
- package/dist/web/shop/orders-v2/index.d.ts +14 -0
- package/dist/web/shop/orders-v2/index.js +124 -0
- package/dist/web/televet/booking/index.cjs +2 -2
- package/dist/web/televet/booking/index.d.cts +6 -6
- package/dist/web/televet/booking/index.d.ts +6 -6
- 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/texting/index.d.cts +5 -5
- package/dist/web/texting/index.d.ts +5 -5
- package/package.json +45 -26
- package/shop/orders-v2/package.json +8 -0
- package/web/shop/orders-v2/native-blocked.cjs +12 -0
- package/web/shop/orders-v2/package.json +8 -0
package/dist/shop/index.d.cts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
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
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { ImageSourcePropType } from 'react-native';
|
|
4
|
-
import { O as OmsClient, S as ShopPet, b as ShopPackageSource, c as ShopCopy, d as ShopV3Copy, e as ShopRoute, f as ShopCardHandoff, a as ShopPaymentsPort, h as ShopProfileName } from '../idempotency.d-
|
|
5
|
-
export {
|
|
6
|
-
import '../
|
|
4
|
+
import { O as OmsClient, S as ShopPet, b as ShopPackageSource, c as ShopCopy, d as ShopV3Copy, e as ShopRoute, f as ShopCardHandoff, a as ShopPaymentsPort, h as ShopProfileName, i as ShopOrdersV2Copy } from '../idempotency.d-gfiN4Qnp.cjs';
|
|
5
|
+
export { j as OmsAddress, k as OmsBuyAgainItem, a4 as OmsCardActionLink, a5 as OmsCardSetupLink, l as OmsCartLine, m as OmsCents, n as OmsClientConfig, o as OmsConsumerAuth, p as OmsError, q as OmsGetToken, r as OmsOffer, s as OmsOrder, t as OmsOrderSummary, u as OmsPlan, v as OmsPlanChangeOption, w as OmsPlanOperation, x as OmsPlanSkipWarning, y as OmsPlanSkipWarningKey, z as OmsPrescription, A as OmsQuote, B as OmsQuoteLine, C as OmsReceipt, D as OmsReceiptCard, E as OmsReceiptLine, F as OmsResult, G as OmsShopConfig, H as OmsSupply, I as SHOP_COPY, J as SHOP_COPY_PLACEHOLDERS, K as SHOP_ORDERS_V2_COPY, L as SHOP_V3_COPY, M as SHOP_V3_COPY_PLACEHOLDERS, N as ShopPackage, P as ShopPackageLine, a6 as ShopPayerActionContext, Q as ShopPaymentStepResult, R as ShopTabName, V as UNAVAILABLE_PACKAGE_SOURCE, W as createOmsClient, X as createOmsPackageSource, Z as isOmsRefusal, _ as isOmsRetryable, $ as isOmsUnavailable, a0 as newIdempotencyKey, a1 as shopCopy, a2 as shopOrdersV2Copy, a3 as shopV3Copy } from '../idempotency.d-gfiN4Qnp.cjs';
|
|
6
|
+
import { E as EverfurShopOrdersV2Screen } from '../view.d-B31M8rCG.cjs';
|
|
7
|
+
import '../config.d-Cy_hJBJG.cjs';
|
|
7
8
|
import '../EverfurError.d-8NHtlgzA.cjs';
|
|
8
9
|
import '../EverfurResult.d-BFH-3s6E.cjs';
|
|
9
10
|
|
|
@@ -93,6 +94,9 @@ interface ShopIconRequest {
|
|
|
93
94
|
readonly color: string;
|
|
94
95
|
}
|
|
95
96
|
|
|
97
|
+
/** Which design draws the shop's own screens: Raph's v3 partner look (default) or his Everfur app Care kit. */
|
|
98
|
+
type EverfurShopLook = 'partner' | 'everfur-app';
|
|
99
|
+
|
|
96
100
|
interface EverfurShopProps {
|
|
97
101
|
/** `createOmsClient({ baseUrl, auth: { kind: 'everfur_consumer', getToken } })`. */
|
|
98
102
|
readonly client: OmsClient;
|
|
@@ -153,7 +157,37 @@ interface EverfurShopProps {
|
|
|
153
157
|
* that key from your storage when the member signs out.
|
|
154
158
|
*/
|
|
155
159
|
readonly cartStorageKey?: string | null;
|
|
160
|
+
/**
|
|
161
|
+
* The design of the shop's own screens (orders, an order, the cart and checkout sheet, Order placed) and of the
|
|
162
|
+
* product tiles. `'partner'` (the default) is Raph's v3 Health Plan shop look, the partner default. `'everfur-app'`
|
|
163
|
+
* is his Everfur phone app Care kit (white page, Dark Green type, bordered cards, outline pills, tiles tinted by drug
|
|
164
|
+
* form), for the Everfur app only.
|
|
165
|
+
*/
|
|
166
|
+
readonly look?: EverfurShopLook;
|
|
167
|
+
/**
|
|
168
|
+
* The design of Orders. `'v1'` (the default) keeps the look's current Orders screen. `'v2'` is Raph's Care > Orders
|
|
169
|
+
* redesign (her days, auto-refills with Skip, Change and Pause, Buy again, past orders and a cart bar); it applies
|
|
170
|
+
* with `look="everfur-app"` only, and draws the screen you pass to `ordersV2Screen`. Its cart bar floats 8 points
|
|
171
|
+
* above `bottomInset`.
|
|
172
|
+
*/
|
|
173
|
+
readonly ordersDesign?: EverfurShopOrdersDesign;
|
|
174
|
+
/**
|
|
175
|
+
* Orders v2's screen: `EverfurShopOrdersV2` from `@everfur/sdk/shop/orders-v2`. It is a separate import so an app on
|
|
176
|
+
* `'v1'` carries none of it. With `ordersDesign="v2"` and no screen, Orders stays on the current screen.
|
|
177
|
+
*/
|
|
178
|
+
readonly ordersV2Screen?: EverfurShopOrdersV2Screen | null;
|
|
179
|
+
/** Your words over Orders v2's defaults (`SHOP_ORDERS_V2_COPY`). */
|
|
180
|
+
readonly ordersCopy?: Partial<ShopOrdersV2Copy>;
|
|
181
|
+
/** Orders v2's "Help with an order" (open your support chat). Without it, the row is not drawn. */
|
|
182
|
+
readonly onOrdersHelp?: (() => void) | null;
|
|
183
|
+
/**
|
|
184
|
+
* Orders v2's cart bar came up (true) or went down (false): it floats where an Ask bar would sit, so you can hide
|
|
185
|
+
* yours while it is up, as the web shop's `data-everfur-shop-cartbar` attribute lets a web host do.
|
|
186
|
+
*/
|
|
187
|
+
readonly onOrdersCartBar?: ((up: boolean) => void) | null;
|
|
156
188
|
}
|
|
189
|
+
/** Which design draws Orders: the look's current screen (`'v1'`, the default) or Raph's October 28 redesign (`'v2'`). */
|
|
190
|
+
type EverfurShopOrdersDesign = 'v1' | 'v2';
|
|
157
191
|
/** Where the host's back button goes from a screen; null on the four Care tabs (they are the root). */
|
|
158
192
|
declare function shopBackRoute(route: ShopRoute): ShopRoute | null;
|
|
159
193
|
declare function EverfurShop(props: EverfurShopProps): ReactNode;
|
|
@@ -230,4 +264,4 @@ declare function ShopSwitchCard({ title, rows, }: {
|
|
|
230
264
|
}[];
|
|
231
265
|
}): ReactNode;
|
|
232
266
|
|
|
233
|
-
export { EverfurShop, type EverfurShopProps, type InAppBrowserCardOptions, type InAppBrowserCardSetupOptions, OmsClient, type ShopAuthSessionResult, ShopCardHandoff, ShopCopy, type ShopFontFace, type ShopFonts, type ShopIconName, type ShopIconRequest, type ShopOpenAuthSession, ShopPackageSource, ShopPaymentsPort, ShopPet, ShopProfileName, ShopRoute, ShopSwitchCard, ShopV3Copy, createInAppBrowserCard, createInAppBrowserCardSetup, createInAppBrowserPayments, shopBackRoute };
|
|
267
|
+
export { EverfurShop, type EverfurShopLook, type EverfurShopOrdersDesign, EverfurShopOrdersV2Screen, type EverfurShopProps, type InAppBrowserCardOptions, type InAppBrowserCardSetupOptions, OmsClient, type ShopAuthSessionResult, ShopCardHandoff, ShopCopy, type ShopFontFace, type ShopFonts, type ShopIconName, type ShopIconRequest, type ShopOpenAuthSession, ShopOrdersV2Copy, ShopPackageSource, ShopPaymentsPort, ShopPet, ShopProfileName, ShopRoute, ShopSwitchCard, ShopV3Copy, createInAppBrowserCard, createInAppBrowserCardSetup, createInAppBrowserPayments, shopBackRoute };
|
package/dist/shop/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
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
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { ImageSourcePropType } from 'react-native';
|
|
4
|
-
import { O as OmsClient, S as ShopPet, b as ShopPackageSource, c as ShopCopy, d as ShopV3Copy, e as ShopRoute, f as ShopCardHandoff, a as ShopPaymentsPort, h as ShopProfileName } from '../idempotency.d-
|
|
5
|
-
export {
|
|
6
|
-
import '../
|
|
4
|
+
import { O as OmsClient, S as ShopPet, b as ShopPackageSource, c as ShopCopy, d as ShopV3Copy, e as ShopRoute, f as ShopCardHandoff, a as ShopPaymentsPort, h as ShopProfileName, i as ShopOrdersV2Copy } from '../idempotency.d-COIrwuCb.js';
|
|
5
|
+
export { j as OmsAddress, k as OmsBuyAgainItem, a4 as OmsCardActionLink, a5 as OmsCardSetupLink, l as OmsCartLine, m as OmsCents, n as OmsClientConfig, o as OmsConsumerAuth, p as OmsError, q as OmsGetToken, r as OmsOffer, s as OmsOrder, t as OmsOrderSummary, u as OmsPlan, v as OmsPlanChangeOption, w as OmsPlanOperation, x as OmsPlanSkipWarning, y as OmsPlanSkipWarningKey, z as OmsPrescription, A as OmsQuote, B as OmsQuoteLine, C as OmsReceipt, D as OmsReceiptCard, E as OmsReceiptLine, F as OmsResult, G as OmsShopConfig, H as OmsSupply, I as SHOP_COPY, J as SHOP_COPY_PLACEHOLDERS, K as SHOP_ORDERS_V2_COPY, L as SHOP_V3_COPY, M as SHOP_V3_COPY_PLACEHOLDERS, N as ShopPackage, P as ShopPackageLine, a6 as ShopPayerActionContext, Q as ShopPaymentStepResult, R as ShopTabName, V as UNAVAILABLE_PACKAGE_SOURCE, W as createOmsClient, X as createOmsPackageSource, Z as isOmsRefusal, _ as isOmsRetryable, $ as isOmsUnavailable, a0 as newIdempotencyKey, a1 as shopCopy, a2 as shopOrdersV2Copy, a3 as shopV3Copy } from '../idempotency.d-COIrwuCb.js';
|
|
6
|
+
import { E as EverfurShopOrdersV2Screen } from '../view.d-B31M8rCG.js';
|
|
7
|
+
import '../config.d-DopRLD4f.js';
|
|
7
8
|
import '../EverfurError.d-8NHtlgzA.js';
|
|
8
9
|
import '../EverfurResult.d-D_-254ZY.js';
|
|
9
10
|
|
|
@@ -93,6 +94,9 @@ interface ShopIconRequest {
|
|
|
93
94
|
readonly color: string;
|
|
94
95
|
}
|
|
95
96
|
|
|
97
|
+
/** Which design draws the shop's own screens: Raph's v3 partner look (default) or his Everfur app Care kit. */
|
|
98
|
+
type EverfurShopLook = 'partner' | 'everfur-app';
|
|
99
|
+
|
|
96
100
|
interface EverfurShopProps {
|
|
97
101
|
/** `createOmsClient({ baseUrl, auth: { kind: 'everfur_consumer', getToken } })`. */
|
|
98
102
|
readonly client: OmsClient;
|
|
@@ -153,7 +157,37 @@ interface EverfurShopProps {
|
|
|
153
157
|
* that key from your storage when the member signs out.
|
|
154
158
|
*/
|
|
155
159
|
readonly cartStorageKey?: string | null;
|
|
160
|
+
/**
|
|
161
|
+
* The design of the shop's own screens (orders, an order, the cart and checkout sheet, Order placed) and of the
|
|
162
|
+
* product tiles. `'partner'` (the default) is Raph's v3 Health Plan shop look, the partner default. `'everfur-app'`
|
|
163
|
+
* is his Everfur phone app Care kit (white page, Dark Green type, bordered cards, outline pills, tiles tinted by drug
|
|
164
|
+
* form), for the Everfur app only.
|
|
165
|
+
*/
|
|
166
|
+
readonly look?: EverfurShopLook;
|
|
167
|
+
/**
|
|
168
|
+
* The design of Orders. `'v1'` (the default) keeps the look's current Orders screen. `'v2'` is Raph's Care > Orders
|
|
169
|
+
* redesign (her days, auto-refills with Skip, Change and Pause, Buy again, past orders and a cart bar); it applies
|
|
170
|
+
* with `look="everfur-app"` only, and draws the screen you pass to `ordersV2Screen`. Its cart bar floats 8 points
|
|
171
|
+
* above `bottomInset`.
|
|
172
|
+
*/
|
|
173
|
+
readonly ordersDesign?: EverfurShopOrdersDesign;
|
|
174
|
+
/**
|
|
175
|
+
* Orders v2's screen: `EverfurShopOrdersV2` from `@everfur/sdk/shop/orders-v2`. It is a separate import so an app on
|
|
176
|
+
* `'v1'` carries none of it. With `ordersDesign="v2"` and no screen, Orders stays on the current screen.
|
|
177
|
+
*/
|
|
178
|
+
readonly ordersV2Screen?: EverfurShopOrdersV2Screen | null;
|
|
179
|
+
/** Your words over Orders v2's defaults (`SHOP_ORDERS_V2_COPY`). */
|
|
180
|
+
readonly ordersCopy?: Partial<ShopOrdersV2Copy>;
|
|
181
|
+
/** Orders v2's "Help with an order" (open your support chat). Without it, the row is not drawn. */
|
|
182
|
+
readonly onOrdersHelp?: (() => void) | null;
|
|
183
|
+
/**
|
|
184
|
+
* Orders v2's cart bar came up (true) or went down (false): it floats where an Ask bar would sit, so you can hide
|
|
185
|
+
* yours while it is up, as the web shop's `data-everfur-shop-cartbar` attribute lets a web host do.
|
|
186
|
+
*/
|
|
187
|
+
readonly onOrdersCartBar?: ((up: boolean) => void) | null;
|
|
156
188
|
}
|
|
189
|
+
/** Which design draws Orders: the look's current screen (`'v1'`, the default) or Raph's October 28 redesign (`'v2'`). */
|
|
190
|
+
type EverfurShopOrdersDesign = 'v1' | 'v2';
|
|
157
191
|
/** Where the host's back button goes from a screen; null on the four Care tabs (they are the root). */
|
|
158
192
|
declare function shopBackRoute(route: ShopRoute): ShopRoute | null;
|
|
159
193
|
declare function EverfurShop(props: EverfurShopProps): ReactNode;
|
|
@@ -230,4 +264,4 @@ declare function ShopSwitchCard({ title, rows, }: {
|
|
|
230
264
|
}[];
|
|
231
265
|
}): ReactNode;
|
|
232
266
|
|
|
233
|
-
export { EverfurShop, type EverfurShopProps, type InAppBrowserCardOptions, type InAppBrowserCardSetupOptions, OmsClient, type ShopAuthSessionResult, ShopCardHandoff, ShopCopy, type ShopFontFace, type ShopFonts, type ShopIconName, type ShopIconRequest, type ShopOpenAuthSession, ShopPackageSource, ShopPaymentsPort, ShopPet, ShopProfileName, ShopRoute, ShopSwitchCard, ShopV3Copy, createInAppBrowserCard, createInAppBrowserCardSetup, createInAppBrowserPayments, shopBackRoute };
|
|
267
|
+
export { EverfurShop, type EverfurShopLook, type EverfurShopOrdersDesign, EverfurShopOrdersV2Screen, type EverfurShopProps, type InAppBrowserCardOptions, type InAppBrowserCardSetupOptions, OmsClient, type ShopAuthSessionResult, ShopCardHandoff, ShopCopy, type ShopFontFace, type ShopFonts, type ShopIconName, type ShopIconRequest, type ShopOpenAuthSession, ShopOrdersV2Copy, ShopPackageSource, ShopPaymentsPort, ShopPet, ShopProfileName, ShopRoute, ShopSwitchCard, ShopV3Copy, createInAppBrowserCard, createInAppBrowserCardSetup, createInAppBrowserPayments, shopBackRoute };
|