@everfur/sdk 0.15.1 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/CHANGELOG.md +122 -0
  2. package/dist/{DepthViews.d-BuEWI6Ln.d.ts → DepthViews.d-A7S-XYiI.d.ts} +1 -1
  3. package/dist/{DepthViews.d--1daZblh.d.cts → DepthViews.d-C4TIZDfz.d.cts} +1 -1
  4. package/dist/{DepthViews.d-CKTnEeUo.d.ts → DepthViews.d-CNjaHLAS.d.ts} +1 -1
  5. package/dist/{DepthViews.d-PuBGdAYk.d.cts → DepthViews.d-DapfRz1S.d.cts} +1 -1
  6. package/dist/{RecordsPage.d-CBB8sfoY.d.ts → RecordsPage.d-6WMbieaV.d.ts} +1 -1
  7. package/dist/{RecordsPage.d-Dq5gpQG0.d.cts → RecordsPage.d-B2gLf8RH.d.cts} +1 -1
  8. package/dist/animations/index.d.cts +5 -5
  9. package/dist/animations/index.d.ts +5 -5
  10. package/dist/{Chat.d-BlsnQwCQ.d.ts → appStateLifecycle.d-B7L427MF.d.ts} +64 -141
  11. package/dist/{Chat.d-BO5iJsR2.d.cts → appStateLifecycle.d-CWedOJq4.d.cts} +64 -141
  12. package/dist/{attachments.d-DRHsJkni.d.cts → attachments.d-BARh-PrJ.d.cts} +24 -6
  13. package/dist/{attachments.d-DFP9yvz9.d.ts → attachments.d-CB0R1_vK.d.ts} +24 -6
  14. package/dist/{attachments.d-C2nkIyDB.d.ts → attachments.d-CPgp4_W-.d.ts} +2 -2
  15. package/dist/{attachments.d-DRUC35Ti.d.cts → attachments.d-DeoaCEMD.d.cts} +2 -2
  16. package/dist/{bookingCopy.d-CFL-1Be2.d.ts → bookingCopy.d-BakTjvWw.d.ts} +2 -2
  17. package/dist/{bookingCopy.d-bF_QknDC.d.cts → bookingCopy.d-CVmpuk9C.d.cts} +2 -2
  18. package/dist/{casesRepository.d-C__BnffJ.d.ts → casesRepository.d-CuokarTU.d.ts} +1 -1
  19. package/dist/{casesRepository.d-BMOnT1fg.d.cts → casesRepository.d-DKRLtYb8.d.cts} +1 -1
  20. package/dist/chat/index.cjs +227 -213
  21. package/dist/chat/index.d.cts +11 -9
  22. package/dist/chat/index.d.ts +11 -9
  23. package/dist/chat/index.js +228 -214
  24. package/dist/client/index.cjs +1 -1
  25. package/dist/client/index.d.cts +6 -6
  26. package/dist/client/index.d.ts +6 -6
  27. package/dist/client/index.js +1 -1
  28. package/dist/{clinicBatch.d-D68RYvc3.d.ts → clinicBatch.d-BP_Rpvcy.d.ts} +2 -2
  29. package/dist/{clinicBatch.d-C5deJ4xY.d.cts → clinicBatch.d-BTDdhMQ2.d.cts} +2 -2
  30. package/dist/{config.d-BQgrIDdu.d.cts → config.d-84fNJFv9.d.cts} +1 -1
  31. package/dist/{config.d-XSMThgVj.d.ts → config.d-B4-Mrwq2.d.ts} +1 -1
  32. package/dist/consent/index.d.cts +5 -5
  33. package/dist/consent/index.d.ts +5 -5
  34. package/dist/{context.d-Ba8YyJpk.d.cts → context.d-87MMrNm6.d.cts} +5 -5
  35. package/dist/{context.d-xoh5vmxS.d.ts → context.d-rNGMZH8T.d.ts} +5 -5
  36. package/dist/{copy.d-Cq-s-UUv.d.cts → copy.d-CJOLhJac.d.cts} +2 -2
  37. package/dist/{copy.d-HV9fU5kh.d.ts → copy.d-DbwWriBp.d.ts} +2 -2
  38. package/dist/core/index.cjs +1 -1
  39. package/dist/core/index.d.cts +13 -13
  40. package/dist/core/index.d.ts +13 -13
  41. package/dist/core/index.js +1 -1
  42. package/dist/{depth.d-DYnkz8Re.d.cts → depth.d-CXpPxNSK.d.cts} +2 -2
  43. package/dist/{depth.d-D7kKiYl7.d.ts → depth.d-Dca1T_RH.d.ts} +2 -2
  44. package/dist/{entitlementRepository.d-DmnUZLl_.d.ts → entitlementRepository.d-BBRYTUlp.d.ts} +2 -2
  45. package/dist/{entitlementRepository.d-B_kEPLhz.d.cts → entitlementRepository.d-DBhzBQjZ.d.cts} +2 -2
  46. package/dist/{focus.d-BHm_QtQ9.d.cts → focus.d-BQnOVAql.d.cts} +3 -3
  47. package/dist/{focus.d-CjL6Cj0m.d.ts → focus.d-BZ2sEpbU.d.ts} +3 -3
  48. package/dist/health-plan/index.cjs +134 -131
  49. package/dist/health-plan/index.d.cts +77 -24
  50. package/dist/health-plan/index.d.ts +77 -24
  51. package/dist/health-plan/index.js +134 -131
  52. package/dist/{idempotency.d-BSRK8od4.d.cts → idempotency.d-9wNNohIA.d.cts} +1 -1
  53. package/dist/{idempotency.d-CFc4CCc9.d.ts → idempotency.d-BdB17veP.d.ts} +1 -1
  54. package/dist/{identity.d-Be2Es9Td.d.ts → identity.d-DxNvhj3a.d.ts} +1 -1
  55. package/dist/{identity.d-HbwYQ4-z.d.cts → identity.d-nRZBzkG2.d.cts} +1 -1
  56. package/dist/index.cjs +232 -218
  57. package/dist/index.d.cts +14 -12
  58. package/dist/index.d.ts +14 -12
  59. package/dist/index.js +233 -219
  60. package/dist/{introEvents.d-Dr34KIaD.d.cts → introEvents.d-CQeiUeLn.d.cts} +1 -1
  61. package/dist/{introEvents.d-DflJ6J9H.d.ts → introEvents.d-bkIxpIKr.d.ts} +1 -1
  62. package/dist/notifications/index.d.cts +4 -4
  63. package/dist/notifications/index.d.ts +4 -4
  64. package/dist/{optInView.d-D23o1gtT.d.cts → optInView.d-BbVUUeoG.d.cts} +2 -2
  65. package/dist/{optInView.d-3mbj1mR6.d.ts → optInView.d-DVJcB4Gp.d.ts} +2 -2
  66. package/dist/{parse.d-BERabxHw.d.ts → parse.d-CGeJrcAC.d.ts} +1 -1
  67. package/dist/{parse.d-4lUXdmvY.d.cts → parse.d-Dk0BasyK.d.cts} +1 -1
  68. package/dist/{pets.d-D_ayuqjp.d.ts → pets.d-DBopbeRe.d.ts} +1 -1
  69. package/dist/{pets.d-CHU0UbXt.d.cts → pets.d-DVptPgi0.d.cts} +1 -1
  70. package/dist/{petsRepository.d-DUaAWoTv.d.ts → petsRepository.d-BtuooSOW.d.ts} +1 -1
  71. package/dist/{petsRepository.d-Bwfe8yuR.d.cts → petsRepository.d-Daef7u0o.d.cts} +1 -1
  72. package/dist/{ports.d-DzEJMVRs.d.ts → ports.d-BxCVSbSi.d.ts} +4 -4
  73. package/dist/{ports.d-ClbPRUtx.d.cts → ports.d-CAT70bVD.d.cts} +4 -4
  74. package/dist/records/depth/index.cjs +1 -1
  75. package/dist/records/depth/index.d.cts +9 -9
  76. package/dist/records/depth/index.d.ts +9 -9
  77. package/dist/records/depth/index.js +1 -1
  78. package/dist/records/index.cjs +242 -200
  79. package/dist/records/index.d.cts +169 -73
  80. package/dist/records/index.d.ts +169 -73
  81. package/dist/records/index.js +243 -201
  82. package/dist/{requestFunnel.d-YabU6G-Z.d.ts → requestFunnel.d-Cxt0JqYx.d.ts} +2 -2
  83. package/dist/{requestFunnel.d-JoqddYSx.d.cts → requestFunnel.d-mEu6B-n8.d.cts} +2 -2
  84. package/dist/{runtimeTypes.d-DQTBJAbk.d.ts → runtimeTypes.d-Bkcj_XQy.d.ts} +4 -4
  85. package/dist/{runtimeTypes.d-Cv38YuzP.d.cts → runtimeTypes.d-D_qHJROH.d.cts} +4 -4
  86. package/dist/{screenProps.d-C-AuHoyF.d.cts → screenProps.d-CR1lrpzR.d.cts} +2 -2
  87. package/dist/{screenProps.d-BuJLzFkN.d.ts → screenProps.d-D9n-ancr.d.ts} +2 -2
  88. package/dist/server/events/index.cjs +1 -1
  89. package/dist/server/events/index.d.cts +2 -2
  90. package/dist/server/events/index.d.ts +2 -2
  91. package/dist/server/events/index.js +1 -1
  92. package/dist/server/index.cjs +1 -1
  93. package/dist/server/index.d.cts +3 -3
  94. package/dist/server/index.d.ts +3 -3
  95. package/dist/server/index.js +1 -1
  96. package/dist/shop/index.cjs +16 -16
  97. package/dist/shop/index.d.cts +12 -3
  98. package/dist/shop/index.d.ts +12 -3
  99. package/dist/shop/index.js +16 -16
  100. package/dist/tabs/index.cjs +4 -4
  101. package/dist/tabs/index.d.cts +34 -15
  102. package/dist/tabs/index.d.ts +34 -15
  103. package/dist/tabs/index.js +5 -5
  104. package/dist/{tabsModel.d-BfIQg6yS.d.ts → tabsModel.d-B7QMug1u.d.cts} +1 -17
  105. package/dist/{tabsModel.d-BfIQg6yS.d.cts → tabsModel.d-B7QMug1u.d.ts} +1 -17
  106. package/dist/televet/booking/index.d.cts +6 -6
  107. package/dist/televet/booking/index.d.ts +6 -6
  108. package/dist/testing/index.d.cts +1 -1
  109. package/dist/testing/index.d.ts +1 -1
  110. package/dist/testing/rn/index.cjs +1 -1
  111. package/dist/testing/rn/index.d.cts +7 -7
  112. package/dist/testing/rn/index.d.ts +7 -7
  113. package/dist/testing/rn/index.js +1 -1
  114. package/dist/testing/web/index.d.cts +7 -7
  115. package/dist/testing/web/index.d.ts +7 -7
  116. package/dist/texting/index.cjs +21 -16
  117. package/dist/texting/index.d.cts +5 -5
  118. package/dist/texting/index.d.ts +5 -5
  119. package/dist/texting/index.js +22 -17
  120. package/dist/threadOptions.d-6hfQS1x7.d.cts +55 -0
  121. package/dist/threadOptions.d-6hfQS1x7.d.ts +55 -0
  122. package/dist/threadOptions.d-BEG-LZrC.d.cts +147 -0
  123. package/dist/threadOptions.d-BerQM1Ql.d.ts +147 -0
  124. package/dist/{threadOptions.d-8x_1evAr.d.ts → threadOptions.d-BgBvSIw8.d.ts} +6 -40
  125. package/dist/{threadOptions.d-DBrmOwmb.d.cts → threadOptions.d-P9v7I7va.d.cts} +6 -40
  126. package/dist/{timelineRows.d-B6lLC8Ud.d.cts → timelineRows.d-C04lp_Vj.d.cts} +1 -1
  127. package/dist/{timelineRows.d-Brlkti-G.d.ts → timelineRows.d-_7JemrY-.d.ts} +1 -1
  128. package/dist/{planSignals.d-CON9gTvJ.d.ts → useHealthPlanSubscription.d-CUbHE6eK.d.ts} +81 -3
  129. package/dist/{planSignals.d-Dha2CMDF.d.cts → useHealthPlanSubscription.d-OhLZpn-n.d.cts} +81 -3
  130. package/dist/{usePresentation.d-Bne14SlX.d.ts → usePresentation.d-CBtBx38t.d.ts} +40 -40
  131. package/dist/{usePresentation.d-BcdCIuEU.d.cts → usePresentation.d-YkJeq9mf.d.cts} +40 -40
  132. package/dist/{useRecordsDepth.d-DAa169VY.d.cts → useRecordsDepth.d-FTImzp6T.d.cts} +1 -1
  133. package/dist/{useRecordsDepth.d-Cd6J03o5.d.ts → useRecordsDepth.d-_rqDIvoq.d.ts} +1 -1
  134. package/dist/{view.d-3d5_O7Xk.d.cts → view.d-Dd6AfMvG.d.cts} +3 -3
  135. package/dist/{view.d-DkGM8GNA.d.ts → view.d-gmYinlac.d.ts} +3 -3
  136. package/dist/web/consent/index.d.cts +5 -5
  137. package/dist/web/consent/index.d.ts +5 -5
  138. package/dist/web/health-plan/index.cjs +1 -1
  139. package/dist/web/health-plan/index.d.cts +15 -69
  140. package/dist/web/health-plan/index.d.ts +15 -69
  141. package/dist/web/health-plan/index.js +1 -1
  142. package/dist/web/index.cjs +5 -5
  143. package/dist/web/index.d.cts +26 -43
  144. package/dist/web/index.d.ts +26 -43
  145. package/dist/web/index.js +5 -5
  146. package/dist/web/intro/index.d.cts +6 -6
  147. package/dist/web/intro/index.d.ts +6 -6
  148. package/dist/web/notifications/index.d.cts +3 -3
  149. package/dist/web/notifications/index.d.ts +3 -3
  150. package/dist/web/records/depth/index.d.cts +9 -9
  151. package/dist/web/records/depth/index.d.ts +9 -9
  152. package/dist/web/records/index.d.cts +11 -11
  153. package/dist/web/records/index.d.ts +11 -11
  154. package/dist/web/records-sheet/index.cjs +10 -10
  155. package/dist/web/records-sheet/index.js +10 -10
  156. package/dist/web/shop/index.cjs +11 -11
  157. package/dist/web/shop/index.d.cts +3 -3
  158. package/dist/web/shop/index.d.ts +3 -3
  159. package/dist/web/shop/index.js +11 -11
  160. package/dist/web/televet/booking/index.d.cts +6 -6
  161. package/dist/web/televet/booking/index.d.ts +6 -6
  162. package/dist/web/texting/index.d.cts +5 -5
  163. package/dist/web/texting/index.d.ts +5 -5
  164. package/package.json +6 -2
@@ -1,9 +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
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-BSRK8od4.cjs';
5
- export { I as OmsCardActionLink, J as OmsCardSetupLink, i as OmsCartLine, j as OmsClientConfig, k as OmsConsumerAuth, l as OmsError, m as OmsGetToken, n as OmsPlanOperation, o as OmsResult, p as SHOP_COPY, q as SHOP_COPY_PLACEHOLDERS, r as SHOP_V3_COPY, s as SHOP_V3_COPY_PLACEHOLDERS, t as ShopPackage, u as ShopPackageLine, K as ShopPayerActionContext, v as ShopPaymentStepResult, w as ShopTabName, U as UNAVAILABLE_PACKAGE_SOURCE, z as createOmsClient, A as createOmsPackageSource, C as isOmsRefusal, D as isOmsRetryable, E as isOmsUnavailable, F as newIdempotencyKey, G as shopCopy, H as shopV3Copy } from '../idempotency.d-BSRK8od4.cjs';
6
- import '../config.d-BQgrIDdu.cjs';
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-9wNNohIA.cjs';
5
+ export { I as OmsCardActionLink, J as OmsCardSetupLink, i as OmsCartLine, j as OmsClientConfig, k as OmsConsumerAuth, l as OmsError, m as OmsGetToken, n as OmsPlanOperation, o as OmsResult, p as SHOP_COPY, q as SHOP_COPY_PLACEHOLDERS, r as SHOP_V3_COPY, s as SHOP_V3_COPY_PLACEHOLDERS, t as ShopPackage, u as ShopPackageLine, K as ShopPayerActionContext, v as ShopPaymentStepResult, w as ShopTabName, U as UNAVAILABLE_PACKAGE_SOURCE, z as createOmsClient, A as createOmsPackageSource, C as isOmsRefusal, D as isOmsRetryable, E as isOmsUnavailable, F as newIdempotencyKey, G as shopCopy, H as shopV3Copy } from '../idempotency.d-9wNNohIA.cjs';
6
+ import '../config.d-84fNJFv9.cjs';
7
7
  import '../EverfurError.d-8NHtlgzA.cjs';
8
8
  import '../EverfurResult.d-BFH-3s6E.cjs';
9
9
 
@@ -144,6 +144,15 @@ interface EverfurShopProps {
144
144
  readonly saveProfileName?: (name: ShopProfileName) => Promise<boolean>;
145
145
  /** Without `saveProfileName`: opens the host's own name editor from that same refusal. */
146
146
  readonly onProfileNameRequired?: () => void;
147
+ /**
148
+ * Keeps the cart under a key of yours (the member's id, say) in the SDK's storage port (the `EverfurProvider`'s
149
+ * storage: your AsyncStorage or MMKV), so it outlives the app being closed during a card step, as the web keeps it
150
+ * for the tab. Without it, or outside an `EverfurProvider`, the cart lives only while the app does. A new key (another
151
+ * member) moves to that key's cart; lines added before the stored cart is read are kept beside it. The stored cart
152
+ * stays under `everfur.shop.cart.{key}` after sign-out, as the web's stays for the tab: on a shared device, remove
153
+ * that key from your storage when the member signs out.
154
+ */
155
+ readonly cartStorageKey?: string | null;
147
156
  }
148
157
  /** Where the host's back button goes from a screen; null on the four Care tabs (they are the root). */
149
158
  declare function shopBackRoute(route: ShopRoute): ShopRoute | null;
@@ -1,9 +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
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-CFc4CCc9.js';
5
- export { I as OmsCardActionLink, J as OmsCardSetupLink, i as OmsCartLine, j as OmsClientConfig, k as OmsConsumerAuth, l as OmsError, m as OmsGetToken, n as OmsPlanOperation, o as OmsResult, p as SHOP_COPY, q as SHOP_COPY_PLACEHOLDERS, r as SHOP_V3_COPY, s as SHOP_V3_COPY_PLACEHOLDERS, t as ShopPackage, u as ShopPackageLine, K as ShopPayerActionContext, v as ShopPaymentStepResult, w as ShopTabName, U as UNAVAILABLE_PACKAGE_SOURCE, z as createOmsClient, A as createOmsPackageSource, C as isOmsRefusal, D as isOmsRetryable, E as isOmsUnavailable, F as newIdempotencyKey, G as shopCopy, H as shopV3Copy } from '../idempotency.d-CFc4CCc9.js';
6
- import '../config.d-XSMThgVj.js';
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-BdB17veP.js';
5
+ export { I as OmsCardActionLink, J as OmsCardSetupLink, i as OmsCartLine, j as OmsClientConfig, k as OmsConsumerAuth, l as OmsError, m as OmsGetToken, n as OmsPlanOperation, o as OmsResult, p as SHOP_COPY, q as SHOP_COPY_PLACEHOLDERS, r as SHOP_V3_COPY, s as SHOP_V3_COPY_PLACEHOLDERS, t as ShopPackage, u as ShopPackageLine, K as ShopPayerActionContext, v as ShopPaymentStepResult, w as ShopTabName, U as UNAVAILABLE_PACKAGE_SOURCE, z as createOmsClient, A as createOmsPackageSource, C as isOmsRefusal, D as isOmsRetryable, E as isOmsUnavailable, F as newIdempotencyKey, G as shopCopy, H as shopV3Copy } from '../idempotency.d-BdB17veP.js';
6
+ import '../config.d-B4-Mrwq2.js';
7
7
  import '../EverfurError.d-8NHtlgzA.js';
8
8
  import '../EverfurResult.d-D_-254ZY.js';
9
9
 
@@ -144,6 +144,15 @@ interface EverfurShopProps {
144
144
  readonly saveProfileName?: (name: ShopProfileName) => Promise<boolean>;
145
145
  /** Without `saveProfileName`: opens the host's own name editor from that same refusal. */
146
146
  readonly onProfileNameRequired?: () => void;
147
+ /**
148
+ * Keeps the cart under a key of yours (the member's id, say) in the SDK's storage port (the `EverfurProvider`'s
149
+ * storage: your AsyncStorage or MMKV), so it outlives the app being closed during a card step, as the web keeps it
150
+ * for the tab. Without it, or outside an `EverfurProvider`, the cart lives only while the app does. A new key (another
151
+ * member) moves to that key's cart; lines added before the stored cart is read are kept beside it. The stored cart
152
+ * stays under `everfur.shop.cart.{key}` after sign-out, as the web's stays for the tab: on a shared device, remove
153
+ * that key from your storage when the member signs out.
154
+ */
155
+ readonly cartStorageKey?: string | null;
147
156
  }
148
157
  /** Where the host's back button goes from a screen; null on the four Care tabs (they are the root). */
149
158
  declare function shopBackRoute(route: ShopRoute): ShopRoute | null;