@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.
Files changed (199) hide show
  1. package/CHANGELOG.md +157 -0
  2. package/README.md +3 -1
  3. package/chat/lite/package.json +8 -0
  4. package/dist/Chat.d-BYY1U61e.d.cts +11 -0
  5. package/dist/Chat.d-uETscjrL.d.ts +11 -0
  6. package/dist/{DepthViews.d-A7S-XYiI.d.ts → DepthViews.d-B4SE5GUD.d.ts} +1 -1
  7. package/dist/{DepthViews.d-CNjaHLAS.d.ts → DepthViews.d-BsZ73mzL.d.ts} +1 -1
  8. package/dist/{DepthViews.d-C4TIZDfz.d.cts → DepthViews.d-DL8MP_kA.d.cts} +1 -1
  9. package/dist/{DepthViews.d-DapfRz1S.d.cts → DepthViews.d-D_Qp4glO.d.cts} +1 -1
  10. package/dist/{RecordsPage.d-B2gLf8RH.d.cts → RecordsPage.d-CYotk2R9.d.cts} +1 -1
  11. package/dist/{RecordsPage.d-6WMbieaV.d.ts → RecordsPage.d-D4gP4leq.d.ts} +1 -1
  12. package/dist/animations/index.d.cts +3 -3
  13. package/dist/animations/index.d.ts +3 -3
  14. package/dist/{appStateLifecycle.d-B7L427MF.d.ts → appStateLifecycle.d-CXJzBS3c.d.ts} +6 -11
  15. package/dist/{appStateLifecycle.d-CWedOJq4.d.cts → appStateLifecycle.d-DJXdDOJY.d.cts} +6 -11
  16. package/dist/attachmentTransport.d-Syrvv5zH.d.ts +41 -0
  17. package/dist/attachmentTransport.d-r1XCCdUB.d.cts +41 -0
  18. package/dist/{attachments.d-BARh-PrJ.d.cts → attachments.d-B8kOCb6q.d.cts} +5 -5
  19. package/dist/{attachments.d-CB0R1_vK.d.ts → attachments.d-BTIGzXWD.d.ts} +5 -5
  20. package/dist/{attachments.d-CPgp4_W-.d.ts → attachments.d-BgatKf7d.d.ts} +2 -2
  21. package/dist/{attachments.d-DeoaCEMD.d.cts → attachments.d-C61URT8r.d.cts} +2 -2
  22. package/dist/{bookingCopy.d-CVmpuk9C.d.cts → bookingCopy.d-B-bSYgqS.d.cts} +2 -2
  23. package/dist/{bookingCopy.d-BakTjvWw.d.ts → bookingCopy.d-JQW2SLM-.d.ts} +2 -2
  24. package/dist/{casesRepository.d-CuokarTU.d.ts → casesRepository.d-CHEjzT4h.d.ts} +1 -1
  25. package/dist/{casesRepository.d-DKRLtYb8.d.cts → casesRepository.d-CVG2EXcg.d.cts} +1 -1
  26. package/dist/chat/index.cjs +32 -31
  27. package/dist/chat/index.d.cts +16 -51
  28. package/dist/chat/index.d.ts +16 -51
  29. package/dist/chat/index.js +32 -31
  30. package/dist/chat/lite/index.cjs +430 -0
  31. package/dist/chat/lite/index.d.cts +35 -0
  32. package/dist/chat/lite/index.d.ts +35 -0
  33. package/dist/chat/lite/index.js +430 -0
  34. package/dist/client/index.cjs +4 -4
  35. package/dist/client/index.d.cts +6 -6
  36. package/dist/client/index.d.ts +6 -6
  37. package/dist/client/index.js +4 -4
  38. package/dist/{clinicBatch.d-BTDdhMQ2.d.cts → clinicBatch.d-DdlFy4pD.d.cts} +2 -2
  39. package/dist/{clinicBatch.d-BP_Rpvcy.d.ts → clinicBatch.d-oNwH_dbI.d.ts} +2 -2
  40. package/dist/{config.d-84fNJFv9.d.cts → config.d-Cy_hJBJG.d.cts} +1 -1
  41. package/dist/{config.d-B4-Mrwq2.d.ts → config.d-DopRLD4f.d.ts} +1 -1
  42. package/dist/consent/index.d.cts +5 -5
  43. package/dist/consent/index.d.ts +5 -5
  44. package/dist/{context.d-rNGMZH8T.d.ts → context.d-Ban-Hhqu.d.ts} +5 -5
  45. package/dist/{context.d-87MMrNm6.d.cts → context.d-C42juGn6.d.cts} +5 -5
  46. package/dist/{copy.d-CJOLhJac.d.cts → copy.d-BTS5l6Ri.d.cts} +2 -2
  47. package/dist/{copy.d-DbwWriBp.d.ts → copy.d-qdbygul9.d.ts} +2 -2
  48. package/dist/core/index.cjs +10 -10
  49. package/dist/core/index.d.cts +13 -13
  50. package/dist/core/index.d.ts +13 -13
  51. package/dist/core/index.js +10 -10
  52. package/dist/{depth.d-Dca1T_RH.d.ts → depth.d-BGkHm2Se.d.ts} +2 -2
  53. package/dist/{depth.d-CXpPxNSK.d.cts → depth.d-BfVrhq9o.d.cts} +2 -2
  54. package/dist/{entitlementRepository.d-BBRYTUlp.d.ts → entitlementRepository.d-CjwqCyhS.d.ts} +2 -2
  55. package/dist/{entitlementRepository.d-DBhzBQjZ.d.cts → entitlementRepository.d-npT7L_7_.d.cts} +2 -2
  56. package/dist/{focus.d-BQnOVAql.d.cts → focus.d-DS7Ze1Pp.d.cts} +2 -2
  57. package/dist/{focus.d-BZ2sEpbU.d.ts → focus.d-S0nq_k1A.d.ts} +2 -2
  58. package/dist/health-plan/index.cjs +7 -7
  59. package/dist/health-plan/index.d.cts +10 -10
  60. package/dist/health-plan/index.d.ts +10 -10
  61. package/dist/health-plan/index.js +7 -7
  62. package/dist/{idempotency.d-9wNNohIA.d.cts → idempotency.d-COIrwuCb.d.ts} +334 -3
  63. package/dist/{idempotency.d-BdB17veP.d.ts → idempotency.d-gfiN4Qnp.d.cts} +334 -3
  64. package/dist/{identity.d-DxNvhj3a.d.ts → identity.d-B3mFvvRq.d.ts} +1 -1
  65. package/dist/{identity.d-nRZBzkG2.d.cts → identity.d-D76vXtkJ.d.cts} +1 -1
  66. package/dist/index.cjs +29 -28
  67. package/dist/index.d.cts +15 -14
  68. package/dist/index.d.ts +15 -14
  69. package/dist/index.js +29 -28
  70. package/dist/{introEvents.d-CQeiUeLn.d.cts → introEvents.d-3FLEemX3.d.cts} +1 -1
  71. package/dist/{introEvents.d-bkIxpIKr.d.ts → introEvents.d-BYnr37bd.d.ts} +1 -1
  72. package/dist/notifications/index.d.cts +4 -4
  73. package/dist/notifications/index.d.ts +4 -4
  74. package/dist/{optInView.d-DVJcB4Gp.d.ts → optInView.d-BqFMcum4.d.ts} +2 -2
  75. package/dist/{optInView.d-BbVUUeoG.d.cts → optInView.d-DXRUGDiD.d.cts} +2 -2
  76. package/dist/{parse.d-CGeJrcAC.d.ts → parse.d-CY22hFxb.d.ts} +1 -1
  77. package/dist/{parse.d-Dk0BasyK.d.cts → parse.d-rvA_aRSO.d.cts} +1 -1
  78. package/dist/{pets.d-DBopbeRe.d.ts → pets.d-Cicz-aIO.d.ts} +1 -1
  79. package/dist/{pets.d-DVptPgi0.d.cts → pets.d-RoHTZsaV.d.cts} +1 -1
  80. package/dist/{petsRepository.d-Daef7u0o.d.cts → petsRepository.d-BxMyt6Aj.d.cts} +1 -1
  81. package/dist/{petsRepository.d-BtuooSOW.d.ts → petsRepository.d-DtAZf_Ja.d.ts} +1 -1
  82. package/dist/photo/index.cjs +2 -2
  83. package/dist/photo/index.js +2 -2
  84. package/dist/{ports.d-CAT70bVD.d.cts → ports.d-D7cjFUoL.d.cts} +4 -4
  85. package/dist/{ports.d-BxCVSbSi.d.ts → ports.d-DrgKa73F.d.ts} +4 -4
  86. package/dist/records/depth/index.cjs +9 -9
  87. package/dist/records/depth/index.d.cts +9 -9
  88. package/dist/records/depth/index.d.ts +9 -9
  89. package/dist/records/depth/index.js +9 -9
  90. package/dist/records/index.cjs +13 -13
  91. package/dist/records/index.d.cts +10 -10
  92. package/dist/records/index.d.ts +10 -10
  93. package/dist/records/index.js +13 -13
  94. package/dist/{requestFunnel.d-Cxt0JqYx.d.ts → requestFunnel.d-B5y7Py8Z.d.ts} +2 -2
  95. package/dist/{requestFunnel.d-mEu6B-n8.d.cts → requestFunnel.d-BdQf53zs.d.cts} +2 -2
  96. package/dist/{runtimeTypes.d-Bkcj_XQy.d.ts → runtimeTypes.d-D5EDgS3Y.d.ts} +4 -4
  97. package/dist/{runtimeTypes.d-D_qHJROH.d.cts → runtimeTypes.d-r4Q5vASZ.d.cts} +4 -4
  98. package/dist/{screenProps.d-D9n-ancr.d.ts → screenProps.d-KLCrP43b.d.ts} +1 -1
  99. package/dist/{screenProps.d-CR1lrpzR.d.cts → screenProps.d-v4a4kzxA.d.cts} +1 -1
  100. package/dist/server/events/index.cjs +3 -3
  101. package/dist/server/events/index.d.cts +72 -6
  102. package/dist/server/events/index.d.ts +72 -6
  103. package/dist/server/events/index.js +3 -3
  104. package/dist/server/index.cjs +2 -2
  105. package/dist/server/index.d.cts +3 -3
  106. package/dist/server/index.d.ts +3 -3
  107. package/dist/server/index.js +2 -2
  108. package/dist/shop/index.cjs +212 -163
  109. package/dist/shop/index.d.cts +38 -4
  110. package/dist/shop/index.d.ts +38 -4
  111. package/dist/shop/index.js +214 -165
  112. package/dist/shop/orders-v2/index.cjs +127 -0
  113. package/dist/shop/orders-v2/index.d.cts +7 -0
  114. package/dist/shop/orders-v2/index.d.ts +7 -0
  115. package/dist/shop/orders-v2/index.js +127 -0
  116. package/dist/tabs/index.d.cts +8 -8
  117. package/dist/tabs/index.d.ts +8 -8
  118. package/dist/televet/booking/index.cjs +2 -2
  119. package/dist/televet/booking/index.d.cts +6 -6
  120. package/dist/televet/booking/index.d.ts +6 -6
  121. package/dist/televet/booking/index.js +2 -2
  122. package/dist/televet/call/index.cjs +1 -1
  123. package/dist/televet/call/index.js +1 -1
  124. package/dist/televet/index.cjs +4 -3
  125. package/dist/televet/index.d.cts +1 -0
  126. package/dist/televet/index.d.ts +1 -0
  127. package/dist/televet/index.js +5 -4
  128. package/dist/testing/index.d.cts +1 -1
  129. package/dist/testing/index.d.ts +1 -1
  130. package/dist/testing/rn/index.d.cts +7 -7
  131. package/dist/testing/rn/index.d.ts +7 -7
  132. package/dist/testing/web/index.d.cts +7 -7
  133. package/dist/testing/web/index.d.ts +7 -7
  134. package/dist/texting/index.d.cts +5 -5
  135. package/dist/texting/index.d.ts +5 -5
  136. package/dist/{threadOptions.d-BEG-LZrC.d.cts → threadOptions.d-B0folrKm.d.cts} +1 -1
  137. package/dist/{threadOptions.d-BgBvSIw8.d.ts → threadOptions.d-Crh_LiDe.d.ts} +3 -3
  138. package/dist/{threadOptions.d-BerQM1Ql.d.ts → threadOptions.d-DTsJFkL-.d.ts} +1 -1
  139. package/dist/{threadOptions.d-P9v7I7va.d.cts → threadOptions.d-EFJaNBP1.d.cts} +3 -3
  140. package/dist/{threadOptions.d-6hfQS1x7.d.cts → threadOptions.d-GPJPprkn.d.cts} +1 -1
  141. package/dist/{threadOptions.d-6hfQS1x7.d.ts → threadOptions.d-GPJPprkn.d.ts} +1 -1
  142. package/dist/{timelineRows.d-C04lp_Vj.d.cts → timelineRows.d-6-Cw8xGd.d.cts} +1 -1
  143. package/dist/{timelineRows.d-_7JemrY-.d.ts → timelineRows.d-DpSis9HR.d.ts} +1 -1
  144. package/dist/{useHealthPlanSubscription.d-CUbHE6eK.d.ts → useHealthPlanSubscription.d-DD30EkUR.d.ts} +3 -3
  145. package/dist/{useHealthPlanSubscription.d-OhLZpn-n.d.cts → useHealthPlanSubscription.d-DWrzUXf4.d.cts} +3 -3
  146. package/dist/{usePresentation.d-YkJeq9mf.d.cts → usePresentation.d-C8rqY56C.d.cts} +1 -1
  147. package/dist/{usePresentation.d-CBtBx38t.d.ts → usePresentation.d-CRG3Gaaq.d.ts} +1 -1
  148. package/dist/{useRecordsDepth.d-FTImzp6T.d.cts → useRecordsDepth.d-BYk7m7gF.d.cts} +1 -1
  149. package/dist/{useRecordsDepth.d-_rqDIvoq.d.ts → useRecordsDepth.d-DlRda5jp.d.ts} +1 -1
  150. package/dist/video/index.cjs +2 -2
  151. package/dist/video/index.js +2 -2
  152. package/dist/view.d-B31M8rCG.d.cts +11 -0
  153. package/dist/view.d-B31M8rCG.d.ts +11 -0
  154. package/dist/{view.d-Dd6AfMvG.d.cts → view.d-CLpEHKOp.d.cts} +3 -3
  155. package/dist/{view.d-gmYinlac.d.ts → view.d-DuIXHr08.d.ts} +3 -3
  156. package/dist/web/consent/index.d.cts +5 -5
  157. package/dist/web/consent/index.d.ts +5 -5
  158. package/dist/web/health-plan/index.cjs +4 -4
  159. package/dist/web/health-plan/index.d.cts +12 -12
  160. package/dist/web/health-plan/index.d.ts +12 -12
  161. package/dist/web/health-plan/index.js +4 -4
  162. package/dist/web/index.cjs +4 -4
  163. package/dist/web/index.d.cts +23 -23
  164. package/dist/web/index.d.ts +23 -23
  165. package/dist/web/index.js +4 -4
  166. package/dist/web/intro/index.d.cts +6 -6
  167. package/dist/web/intro/index.d.ts +6 -6
  168. package/dist/web/notifications/index.d.cts +3 -3
  169. package/dist/web/notifications/index.d.ts +3 -3
  170. package/dist/web/records/depth/index.cjs +9 -9
  171. package/dist/web/records/depth/index.d.cts +9 -9
  172. package/dist/web/records/depth/index.d.ts +9 -9
  173. package/dist/web/records/depth/index.js +9 -9
  174. package/dist/web/records/index.cjs +12 -12
  175. package/dist/web/records/index.d.cts +11 -11
  176. package/dist/web/records/index.d.ts +11 -11
  177. package/dist/web/records/index.js +12 -12
  178. package/dist/web/records-sheet/index.cjs +9 -9
  179. package/dist/web/records-sheet/index.js +9 -9
  180. package/dist/web/shop/index.cjs +194 -50
  181. package/dist/web/shop/index.d.cts +32 -4
  182. package/dist/web/shop/index.d.ts +32 -4
  183. package/dist/web/shop/index.js +194 -50
  184. package/dist/web/shop/orders-v2/index.cjs +124 -0
  185. package/dist/web/shop/orders-v2/index.d.cts +14 -0
  186. package/dist/web/shop/orders-v2/index.d.ts +14 -0
  187. package/dist/web/shop/orders-v2/index.js +124 -0
  188. package/dist/web/televet/booking/index.cjs +2 -2
  189. package/dist/web/televet/booking/index.d.cts +6 -6
  190. package/dist/web/televet/booking/index.d.ts +6 -6
  191. package/dist/web/televet/booking/index.js +2 -2
  192. package/dist/web/televet/call/index.cjs +1 -1
  193. package/dist/web/televet/call/index.js +1 -1
  194. package/dist/web/texting/index.d.cts +5 -5
  195. package/dist/web/texting/index.d.ts +5 -5
  196. package/package.json +45 -26
  197. package/shop/orders-v2/package.json +8 -0
  198. package/web/shop/orders-v2/native-blocked.cjs +12 -0
  199. package/web/shop/orders-v2/package.json +8 -0
@@ -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 { j as FetchLike } from './config.d-B4-Mrwq2.js';
2
+ import { j as FetchLike } from './config.d-Cy_hJBJG.cjs';
3
3
 
4
4
  type OmsError =
5
5
  /** 404: hidden. The shop, the gate, the record, or the account is not available to this viewer. */
@@ -89,6 +89,16 @@ interface OmsShopConfig {
89
89
  * `phone`); empty when nothing is missing. Optional: older servers do not send it (CONTRACT-NOTES section 2).
90
90
  */
91
91
  readonly rxContactMissing?: readonly string[] | null;
92
+ /**
93
+ * Everyday orders at or over this ship free (`free_shipping_threshold_cents`, Care > Orders v2). Optional: older
94
+ * servers do not send it; absent or null, the cart bar says nothing about shipping.
95
+ */
96
+ readonly freeShippingThresholdCents?: OmsCents | null;
97
+ /**
98
+ * The cents off an eligible owner's first prescription once it is filled (`first_rx_discount_cents`, VET50, 5000).
99
+ * Optional: older servers do not send it; absent or null, the cart bar shows no discount (CONTRACT.md section 10).
100
+ */
101
+ readonly firstRxDiscountCents?: OmsCents | null;
92
102
  }
93
103
  type OmsPackUnit = 'each' | 'gram' | 'milliliter';
94
104
  /** One active offer (contract 4.1). */
@@ -130,6 +140,18 @@ interface OmsQuoteLine {
130
140
  readonly unitPrice: OmsCents;
131
141
  readonly discount: OmsCents;
132
142
  readonly tax: OmsCents;
143
+ /**
144
+ * The part of `discount` taken off once the line is filled (`when_filled_discount_cents`, VET50); 0 for a line
145
+ * charged today. Optional: older servers do not send it (CONTRACT.md section 10).
146
+ */
147
+ readonly whenFilledDiscountCents?: OmsCents | null;
148
+ /** Sold on a prescription (`is_rx`). Optional: older servers do not send it (null is unknown). */
149
+ readonly isRx?: boolean | null;
150
+ /**
151
+ * The line's order is charged once the pharmacy fills it, not today (`charged_when_filled`). Optional: older servers
152
+ * do not send it (null is unknown).
153
+ */
154
+ readonly chargedWhenFilled?: boolean | null;
133
155
  }
134
156
  /** `POST /oms/cart/quote`. Creates nothing; good for 30 minutes. */
135
157
  interface OmsQuote {
@@ -138,6 +160,15 @@ interface OmsQuote {
138
160
  readonly tax: OmsCents;
139
161
  readonly total: OmsCents;
140
162
  readonly expiresAt: string;
163
+ /** The lines' `whenFilledDiscountCents` summed (`when_filled_discount_cents`). Optional, as on the lines. */
164
+ readonly whenFilledDiscountCents?: OmsCents | null;
165
+ /**
166
+ * The part of `total` charged today (`due_today_cents`). With `dueWhenFilledCents` it splits `total` by when each
167
+ * order is charged. Optional: null where the server made no split or is older.
168
+ */
169
+ readonly dueTodayCents?: OmsCents | null;
170
+ /** The part of `total` charged once the pharmacy fills it (`due_when_filled_cents`). Optional, as `dueTodayCents`. */
171
+ readonly dueWhenFilledCents?: OmsCents | null;
141
172
  }
142
173
  type OmsCheckoutState = 'draft' | 'authorizing' | 'confirmed' | 'compensating' | 'failed' | 'expired';
143
174
  /** `POST /oms/checkouts` (201). `total` is what confirm will charge. */
@@ -174,12 +205,37 @@ interface OmsOrderSummary {
174
205
  readonly itemCount?: number | null;
175
206
  /** The first lines (at most 3, line order), so a list row can name what is in the order. Optional, as above. */
176
207
  readonly items?: readonly OmsOrderItem[] | null;
208
+ /** Who fills it: the pharmacy (a prescription) or Everfur's box. */
209
+ readonly fulfiller?: OmsOrderFulfiller | null;
210
+ /** The day it is expected (a date), the same value the order page has. */
211
+ readonly arrivesBy?: string | null;
212
+ /** Its tracking steps in order: Rx `ordered`, `vet_approved`, `filled`, `delivered`; box `ordered`, `packing`, `delivered`. */
213
+ readonly steps?: readonly OmsOrderListStep[] | null;
214
+ /** The key of the step in progress. */
215
+ readonly currentStep?: string | null;
216
+ /** Which status line the list shows (the SDK owns the words). An unknown future key is carried as sent. */
217
+ readonly statusLineKey?: OmsOrderStatusLineKey | string | null;
218
+ /** The prescribing vet's display name ("Dr. Goode"), on prescription orders. */
219
+ readonly prescriberName?: string | null;
220
+ }
221
+ type OmsOrderFulfiller = 'pharmacy' | 'everfur_box';
222
+ type OmsOrderStatusLineKey = 'ships_tomorrow' | 'needs_vet_ok' | 'being_filled' | 'packing' | 'shipped' | 'out_for_delivery' | 'delivered' | 'tracking_unavailable';
223
+ /** One step on an orders list row (`steps[]`). */
224
+ interface OmsOrderListStep {
225
+ readonly key: string;
226
+ /** When it was done (ISO time); null while it is not. */
227
+ readonly doneAt: string | null;
177
228
  }
178
229
  /** One line named on an order summary (`items[]`). */
179
230
  interface OmsOrderItem {
180
231
  readonly offerId: string;
181
232
  readonly title: string;
182
233
  readonly quantity: number;
234
+ /**
235
+ * The product's photo, an https URL (`image_url`). Optional: older servers do not send it. Absent or null: the
236
+ * shop draws the drug-form tile.
237
+ */
238
+ readonly imageUrl?: string | null;
183
239
  }
184
240
  /** The order's four customer steps (`steps[]` on the order detail). */
185
241
  type OmsOrderStepKey = 'ordered' | 'shipped' | 'out_for_delivery' | 'delivered';
@@ -208,6 +264,11 @@ interface OmsOrderLine {
208
264
  readonly tax: OmsCents;
209
265
  readonly fulfillmentType: string;
210
266
  readonly petId: string | null;
267
+ /**
268
+ * The product's photo, an https URL (`image_url`). Optional: older servers do not send it. Absent or null: the
269
+ * shop draws the drug-form tile.
270
+ */
271
+ readonly imageUrl?: string | null;
211
272
  }
212
273
  type OmsShipmentState = 'label_created' | 'in_transit' | 'exception' | 'delivered' | 'returned_to_sender';
213
274
  interface OmsTrackingEvent {
@@ -314,6 +375,27 @@ interface OmsPrescription {
314
375
  readonly expiresOn: string | null;
315
376
  /** Set when `too_soon`. */
316
377
  readonly nextFillOn: string | null;
378
+ /** What is left and when it runs out; null when there is not enough data to count. */
379
+ readonly supply?: OmsSupply | null;
380
+ /** The prescribing vet's display name ("Dr. Goode"). */
381
+ readonly prescriberName?: string | null;
382
+ readonly refillsTotal?: number | null;
383
+ readonly refillsLeft?: number | null;
384
+ }
385
+ /** A prescription's supply (`supply`). */
386
+ interface OmsSupply {
387
+ /** Units left today, floored at 0. */
388
+ readonly unitsLeft: number;
389
+ /** The dosage-form noun ("tablet", "chew"). */
390
+ readonly unitLabel: string;
391
+ readonly dailyUnits: number;
392
+ /** The day it runs out (a date). */
393
+ readonly runsOutOn: string;
394
+ /**
395
+ * When a refill ordered today would arrive (a date), from the fulfiller's real lead times; null (or absent, from an
396
+ * older OMS) when there is no real source. Never a guess.
397
+ */
398
+ readonly refillArrivesOn?: string | null;
317
399
  }
318
400
  /** A saved address, as listed: a label only, the address is sealed at rest (contract 4.13). */
319
401
  interface OmsAddressEntry {
@@ -388,6 +470,61 @@ interface OmsPlan {
388
470
  readonly nextRun: string | null;
389
471
  readonly state: OmsPlanState | string;
390
472
  readonly stopReason: OmsPlanStopReason | string | null;
473
+ readonly priceCentsPerCycle?: OmsCents | null;
474
+ /** True on prescription plans: the card is charged once the pharmacy fills it. */
475
+ readonly chargedWhenFilled?: boolean | null;
476
+ /** The next ship day (a date). */
477
+ readonly nextShipOn?: string | null;
478
+ /** The skipped cycle's day (a date), after a skip; null otherwise. */
479
+ readonly skippedCycleOn?: string | null;
480
+ /** Prescription plans only. */
481
+ readonly prescriberName?: string | null;
482
+ readonly refillsLeft?: number | null;
483
+ readonly refillsTotal?: number | null;
484
+ /** The everyday auto discount, in percent (10 is 10% off); null when none is configured. */
485
+ readonly autoDiscountPct?: number | null;
486
+ /** The packs and cadences the plan can change to (CARE-ORDERS-V2 contract section 9); null or absent: cadences only. */
487
+ readonly changeOptions?: readonly OmsPlanChangeOption[] | null;
488
+ /**
489
+ * The Skip sheet's supply warning on a prescription plan: which of Raph's two sentences fits, and the values it is
490
+ * filled with (the host owns the words, as with `statusLineKey`). Null when absent, malformed or an unknown key.
491
+ */
492
+ readonly skipWarning?: OmsPlanSkipWarning | null;
493
+ }
494
+ /** `last_dose`: one unit left and nothing on its way. `bottle_gap`: the bottle on its way runs out before the next. */
495
+ type OmsPlanSkipWarningKey = 'last_dose' | 'bottle_gap';
496
+ /** A plan's `skip_warning`. Each value is null when the key does not use it, or when the server sent none. */
497
+ interface OmsPlanSkipWarning {
498
+ readonly key: OmsPlanSkipWarningKey;
499
+ readonly values: {
500
+ /** `last_dose`: the counted noun ("chew", "tablet"). */
501
+ readonly unitLabel: string | null;
502
+ /** `last_dose`: the day of the dose the unit left is for (a date). */
503
+ readonly doseOn: string | null;
504
+ /** `last_dose`: the first dose day with none left (a date). */
505
+ readonly noneFor: string | null;
506
+ /** `bottle_gap`: the day what she has plus the fill on its way runs out (a date). */
507
+ readonly lastsTo: string | null;
508
+ /** `bottle_gap`: the gap after a skip, in whole weeks (2 or more). */
509
+ readonly weeks: number | null;
510
+ };
511
+ }
512
+ /** One pack a plan can change to, priced per cycle, with the cadences it allows (CARE-ORDERS-V2 contract section 9). */
513
+ interface OmsPlanChangeOption {
514
+ readonly offerId: string;
515
+ readonly title: string;
516
+ /** The catalog size after the item's name ("90 ct"); null when the title has none. */
517
+ readonly size: string | null;
518
+ readonly packQuantity: string | null;
519
+ readonly packUnit: OmsPackUnit | null;
520
+ /** Prescription plans: the counted noun ("tablet", "chew"); null for everyday items. */
521
+ readonly unitLabel: string | null;
522
+ /** Packs per cycle on this choice. */
523
+ readonly quantity: number;
524
+ readonly priceCentsPerCycle: OmsCents;
525
+ readonly cadenceDays: readonly number[];
526
+ /** The plan's own pack. */
527
+ readonly current: boolean;
391
528
  }
392
529
  interface OmsPlanPage {
393
530
  readonly plans: readonly OmsPlan[];
@@ -407,10 +544,62 @@ interface OmsPlanPatch {
407
544
  readonly idempotencyKey: string;
408
545
  readonly lines?: readonly OmsCartLine[];
409
546
  readonly cadenceDays?: number;
547
+ /** Another pack from the plan's `changeOptions`, sent with its `cadenceDays` and without `lines`. */
548
+ readonly offerId?: string;
410
549
  readonly destination?: string;
411
550
  readonly paymentMethodId?: string;
412
551
  }
413
- type OmsPlanOperation = 'pause' | 'skip' | 'resume';
552
+ /** `unskip` (Care > Orders v2) gives back the skipped cycle; idempotent. */
553
+ type OmsPlanOperation = 'pause' | 'skip' | 'resume' | 'unskip';
554
+ /** `GET /oms/buy-again` (Care > Orders v2): one item from delivered orders, deduped by offer, newest first. */
555
+ interface OmsBuyAgainItem {
556
+ readonly offerId: string;
557
+ readonly title: string;
558
+ /** An https URL, else null. */
559
+ readonly imageUrl: string | null;
560
+ readonly priceCents: OmsCents | null;
561
+ /** A date, or null. */
562
+ readonly lastOrderedOn: string | null;
563
+ readonly isRx: boolean;
564
+ /** True when the pack should have run out by now (false when unknown). */
565
+ readonly likelyOut: boolean;
566
+ }
567
+ /** One line of an order's receipt. `total` is `unitPrice` x `quantity` - `discount` + `tax`. */
568
+ interface OmsReceiptLine {
569
+ readonly title: string;
570
+ readonly quantity: number;
571
+ readonly unitPrice: OmsCents;
572
+ readonly discount: OmsCents;
573
+ readonly tax: OmsCents;
574
+ readonly total: OmsCents;
575
+ }
576
+ /** The card a receipt was charged to. */
577
+ interface OmsReceiptCard {
578
+ readonly brand: string;
579
+ readonly last4: string;
580
+ }
581
+ /**
582
+ * `GET /oms/orders/{order_id}/receipt` (Care > Orders v2): `subtotal` - `discounts` + `shipping` + `tax` is `total`.
583
+ * 404 for an unknown order, someone else's, or an older server.
584
+ */
585
+ interface OmsReceipt {
586
+ readonly orderId: string;
587
+ /** The order number the member sees (`reference.number`), or null. */
588
+ readonly referenceNumber: string | null;
589
+ readonly placedAt: string;
590
+ readonly lines: readonly OmsReceiptLine[];
591
+ readonly subtotal: OmsCents;
592
+ readonly shipping: OmsCents;
593
+ readonly tax: OmsCents;
594
+ readonly discounts: OmsCents;
595
+ readonly total: OmsCents;
596
+ /** Set once the card was charged, else null. */
597
+ readonly paidAt: string | null;
598
+ /** Null when it cannot be read now. */
599
+ readonly card: OmsReceiptCard | null;
600
+ /** Null when it cannot be read now. */
601
+ readonly shipTo: OmsAddress | null;
602
+ }
414
603
  type OmsCycleReviewState = 'open' | 'approving' | 'approved' | 'skipped' | 'withdrawn' | 'failed';
415
604
  /** `GET /oms/subscriptions/{plan_id}/cycle`. */
416
605
  interface OmsCycleReview {
@@ -524,8 +713,10 @@ interface OmsClient {
524
713
  quote(request: OmsQuoteRequest): Promise<OmsResult<OmsQuote>>;
525
714
  createCheckout(request: OmsCheckoutRequest): Promise<OmsResult<OmsCheckout>>;
526
715
  confirmCheckout(checkoutId: string, request: OmsConfirmRequest): Promise<OmsResult<OmsConfirmation>>;
716
+ /** `since` (a date, Care > Orders v2) keeps orders placed on or after it; older servers ignore it. */
527
717
  orders(query?: OmsPageQuery & {
528
718
  readonly reference?: string;
719
+ readonly since?: string;
529
720
  }): Promise<OmsResult<OmsOrderPage>>;
530
721
  order(orderId: string): Promise<OmsResult<OmsOrder>>;
531
722
  cancelOrder(orderId: string, request: {
@@ -544,12 +735,19 @@ interface OmsClient {
544
735
  cardActionLink(orderId: string, request: {
545
736
  readonly returnUrl: string;
546
737
  }): Promise<OmsResult<OmsCardActionLink>>;
738
+ /**
739
+ * One of the member's orders as a receipt. 404 for an unknown order, someone else's, or an older server. Optional on
740
+ * the interface so a host's own OmsClient double still compiles; `createOmsClient` always implements it.
741
+ */
742
+ receipt?(orderId: string): Promise<OmsResult<OmsReceipt>>;
547
743
  requestReturn(orderId: string, request: OmsReturnRequest): Promise<OmsResult<OmsReturn>>;
548
744
  getReturn(returnId: string): Promise<OmsResult<OmsReturn>>;
549
745
  cancelReturn(returnId: string): Promise<OmsResult<OmsReturn>>;
550
746
  openCase(orderId: string, request: OmsCaseRequest): Promise<OmsResult<OmsCase>>;
551
747
  orderCases(orderId: string): Promise<OmsResult<readonly OmsCase[]>>;
552
748
  plans(query?: OmsPageQuery): Promise<OmsResult<OmsPlanPage>>;
749
+ /** Care > Orders v2: items from delivered orders, deduped by offer, newest first (at most 20). 404 on older servers. */
750
+ buyAgain(): Promise<OmsResult<readonly OmsBuyAgainItem[]>>;
553
751
  createPlan(input: OmsPlanInput): Promise<OmsResult<OmsPlan>>;
554
752
  updatePlan(planId: string, patch: OmsPlanPatch): Promise<OmsResult<OmsPlan>>;
555
753
  planAction(planId: string, request: {
@@ -900,6 +1098,139 @@ declare const SHOP_COPY_PLACEHOLDERS: readonly string[];
900
1098
  /** The host's words over the defaults. */
901
1099
  declare function shopCopy(overrides?: Partial<ShopCopy>): ShopCopy;
902
1100
 
1101
+ /** Raph's Care > Orders v2 words. Every function takes values already formatted for display. */
1102
+ declare const SHOP_ORDERS_V2_COPY: {
1103
+ /** "Evie’s orders". */
1104
+ readonly title: (pet: string) => string;
1105
+ /** "3 on auto-refill". */
1106
+ readonly onAuto: (n: number) => string;
1107
+ readonly nothingOnAuto: "Nothing on auto-refill";
1108
+ /** "2 packages on the way", "1 package on the way", "Nothing on the way". */
1109
+ readonly onTheWay: (n: number) => string;
1110
+ /** The date block's top line on today's row. */
1111
+ readonly today: "Today";
1112
+ /** "Evie has 8 Apoquel left". */
1113
+ readonly hasLeft: (pet: string, units: number, drug: string) => string;
1114
+ /** "Enough until Thu, Oct 1". */
1115
+ readonly enoughUntil: (day: string) => string;
1116
+ readonly boxArrives: "Her box arrives";
1117
+ /** "Her Apoquel arrives". */
1118
+ readonly rxArrives: (drug: string) => string;
1119
+ /** "3 items" (a box with more than one item); "1 item", as his cart bar counts one. */
1120
+ readonly items: (n: number) => string;
1121
+ /** "30 tablets", "1 chew": the pack, from the supply's unit noun. */
1122
+ readonly units: (n: number, unit: string) => string;
1123
+ readonly shipsTomorrow: "Ships tomorrow";
1124
+ /** "Needs Dr. Goode’s OK". */
1125
+ readonly needsVetOk: (prescriber: string) => string;
1126
+ readonly trackingDown: "Tracking isn’t loading. Pull down to try again.";
1127
+ readonly wontRunOut: "She won’t run out";
1128
+ /** "Her old bottle ends today. The new one is due Tue, Sep 29." */
1129
+ readonly oldBottleEnds: (day: string) => string;
1130
+ /** "Her Apoquel runs out". */
1131
+ readonly runsOut: (drug: string) => string;
1132
+ /** "Order today, it arrives Tue, Sep 29." */
1133
+ readonly orderToday: (day: string) => string;
1134
+ readonly refill: "Refill";
1135
+ readonly inCart: "In cart";
1136
+ readonly autoTitle: "On auto-refill";
1137
+ readonly autoSub: "Timed to her supply";
1138
+ readonly rxTag: "Rx";
1139
+ readonly ships: "Ships";
1140
+ readonly autoRefill: "Auto-refill";
1141
+ readonly paused: "Paused";
1142
+ /** "1 chew, every month · $31.99 when filled", "Every 4 months · $29.69". */
1143
+ readonly planMeta: (say: string, price: string | null, whenFilled: boolean) => string;
1144
+ /** "every 30 days" after an amount ("30 tablets, every 30 days"); one day reads as his one month does, "every day". */
1145
+ readonly everyDays: (n: number) => string;
1146
+ /** "Every 30 days" on its own; "Every day" for one. */
1147
+ readonly everyDaysAlone: (n: number) => string;
1148
+ /** "every month", "every 3 months" after an amount ("1 chew, every month", "3 chews, every 3 months"). */
1149
+ readonly everyMonthsAfter: (n: number) => string;
1150
+ /** "Every month", "Every 2 months" (everyday plans, whole months). */
1151
+ readonly everyMonths: (n: number) => string;
1152
+ /** "30 tablets, every 30 days". */
1153
+ readonly amountEvery: (amount: string, every: string) => string;
1154
+ /** "Dr. Goode OKs each refill". */
1155
+ readonly vetOks: (prescriber: string) => string;
1156
+ /** "8 left on her prescription". */
1157
+ readonly leftOnRx: (n: number) => string;
1158
+ /** "10% off on auto". */
1159
+ readonly offOnAuto: (pct: number) => string;
1160
+ /** "Skipped Mon, Oct 5." (then Undo). */
1161
+ readonly skipped: (day: string) => string;
1162
+ readonly undo: "Undo";
1163
+ readonly skip: "Skip";
1164
+ readonly change: "Change";
1165
+ readonly pause: "Pause";
1166
+ /** "Resume · next ships Mon, Oct 5"; with no date, "Resume". */
1167
+ readonly resume: (day: string | null) => string;
1168
+ readonly sheetTitle: "Manage auto-refill";
1169
+ /** "Skip Mon, Oct 5?". */
1170
+ readonly skipTitle: (day: string) => string;
1171
+ readonly changeTitle: "How often";
1172
+ readonly pauseTitle: "Pause auto-refill?";
1173
+ /** "1 chew, every month · next ships Mon, Oct 5". */
1174
+ readonly sheetMeta: (say: string, day: string | null) => string;
1175
+ /** "The next one ships a cycle later, Thu, Jan 21." */
1176
+ readonly skipSay: (day: string) => string;
1177
+ /** "Skip, next ships Nov 5". */
1178
+ readonly skipGo: (short: string) => string;
1179
+ /** "Dr. Goode OKs a new amount before the next one ships." */
1180
+ readonly changeRxSay: (prescriber: string) => string;
1181
+ readonly save: "Save";
1182
+ /** "Nothing ships until you resume. Dr. Goode’s prescription stays on file, with its 8 refills." ("its 1 refill"). */
1183
+ readonly pauseRxSay: (prescriber: string, refills: number) => string;
1184
+ readonly pauseSay: "Nothing ships until you resume. Resume any time, here.";
1185
+ readonly pauseGo: "Pause it";
1186
+ readonly keep: "Keep it as it is";
1187
+ readonly close: "Close";
1188
+ readonly saveFailed: "That didn’t save. Try again.";
1189
+ /** Announced after a save: "Skipped. Simparica Trio next ships Thu, Nov 5." */
1190
+ readonly saidSkipped: (name: string, day: string) => string;
1191
+ /** "Saved. Simparica Trio from Mon, Oct 5." */
1192
+ readonly saidSaved: (name: string, day: string) => string;
1193
+ readonly saidPaused: "Paused. Nothing ships until you resume.";
1194
+ readonly buyAgainTitle: "Buy again";
1195
+ readonly buyAgainSub: "From her past orders";
1196
+ readonly likelyOut: "Likely out by now";
1197
+ /** "Ordered Aug 15". */
1198
+ readonly ordered: (short: string) => string;
1199
+ /** "Add Vetradent dental chews" (the + button's label). */
1200
+ readonly addOne: (name: string) => string;
1201
+ /** "One less Vetradent dental chews" (the - button's label). */
1202
+ readonly oneLess: (name: string) => string;
1203
+ /** "Everything else for Evie". */
1204
+ readonly everythingElse: (pet: string) => string;
1205
+ readonly pastTitle: "Past orders";
1206
+ readonly pastSub: "Last 3 months";
1207
+ readonly delivered: "Delivered";
1208
+ readonly everfurBox: "Everfur box";
1209
+ /** "Add all 3 to cart", "Add both to cart". */
1210
+ readonly addAll: (n: number) => string;
1211
+ readonly inTheCart: "In the cart";
1212
+ readonly receipt: "Receipt";
1213
+ readonly help: "Help with an order";
1214
+ readonly legal: "Prescription refills need the prescribing vet’s OK each time, and are charged once filled.";
1215
+ /** "1 item", "2 items". */
1216
+ readonly itemCount: (n: number) => string;
1217
+ /** "2 items · ships free". */
1218
+ readonly shipsFree: (items: string) => string;
1219
+ /** "1 item · free shipping over $35". */
1220
+ readonly freeOver: (items: string, threshold: string) => string;
1221
+ /** "today, + $14.99 Rx when filled". */
1222
+ readonly todayPlusRx: (amount: string) => string;
1223
+ /** "when it’s filled, $50 off"; with no discount known, "when it’s filled". */
1224
+ readonly whenFilled: (off: string | null) => string;
1225
+ readonly checkout: "Checkout";
1226
+ };
1227
+ /** Raph's Care > Orders v2 words (`SHOP_ORDERS_V2_COPY`); a host may replace any of them. */
1228
+ type ShopOrdersV2Copy = {
1229
+ readonly [K in keyof typeof SHOP_ORDERS_V2_COPY]: (typeof SHOP_ORDERS_V2_COPY)[K] extends (...args: infer A) => string ? (...args: A) => string : string;
1230
+ };
1231
+ /** The defaults with the host's lines over them. */
1232
+ declare function shopOrdersV2Copy(over?: Partial<ShopOrdersV2Copy>): ShopOrdersV2Copy;
1233
+
903
1234
  declare const SHOP_V3_COPY: {
904
1235
  cartTitle: string;
905
1236
  cartLabel: (n: number) => string;
@@ -1060,4 +1391,4 @@ type ShopCardHandoff = () => Promise<ShopPaymentStepResult>;
1060
1391
 
1061
1392
  declare function newIdempotencyKey(): string;
1062
1393
 
1063
- export { createOmsPackageSource as A, createStripeJsPayments as B, isOmsRefusal as C, isOmsRetryable as D, isOmsUnavailable as E, newIdempotencyKey as F, shopCopy as G, shopV3Copy as H, type OmsCardActionLink as I, type OmsCardSetupLink as J, type ShopPayerActionContext as K, type OmsClient as O, type ShopPet as S, UNAVAILABLE_PACKAGE_SOURCE as U, type ShopPaymentsPort as a, type ShopPackageSource as b, type ShopCopy as c, type ShopV3Copy as d, type ShopRoute as e, type ShopCardHandoff as f, type ShopCardReturn as g, type ShopProfileName as h, type OmsCartLine as i, type OmsClientConfig as j, type OmsConsumerAuth as k, type OmsError as l, type OmsGetToken as m, type OmsPlanOperation as n, type OmsResult as o, SHOP_COPY as p, SHOP_COPY_PLACEHOLDERS as q, SHOP_V3_COPY as r, SHOP_V3_COPY_PLACEHOLDERS as s, type ShopPackage as t, type ShopPackageLine as u, type ShopPaymentStepResult as v, type ShopTabName as w, type StripeJsLike as x, type StripeJsPaymentsOptions as y, createOmsClient as z };
1394
+ export { isOmsUnavailable as $, type OmsQuote as A, type OmsQuoteLine as B, type OmsReceipt as C, type OmsReceiptCard as D, type OmsReceiptLine as E, type OmsResult as F, type OmsShopConfig as G, type OmsSupply as H, SHOP_COPY as I, SHOP_COPY_PLACEHOLDERS as J, SHOP_ORDERS_V2_COPY as K, SHOP_V3_COPY as L, SHOP_V3_COPY_PLACEHOLDERS as M, type ShopPackage as N, type OmsClient as O, type ShopPackageLine as P, type ShopPaymentStepResult as Q, type ShopTabName as R, type ShopPet as S, type StripeJsLike as T, type StripeJsPaymentsOptions as U, UNAVAILABLE_PACKAGE_SOURCE as V, createOmsClient as W, createOmsPackageSource as X, createStripeJsPayments as Y, isOmsRefusal as Z, isOmsRetryable as _, type ShopPaymentsPort as a, newIdempotencyKey as a0, shopCopy as a1, shopOrdersV2Copy as a2, shopV3Copy as a3, type OmsCardActionLink as a4, type OmsCardSetupLink as a5, type ShopPayerActionContext as a6, type ShopPackageSource as b, type ShopCopy as c, type ShopV3Copy as d, type ShopRoute as e, type ShopCardHandoff as f, type ShopCardReturn as g, type ShopProfileName as h, type ShopOrdersV2Copy as i, type OmsAddress as j, type OmsBuyAgainItem as k, type OmsCartLine as l, type OmsCents as m, type OmsClientConfig as n, type OmsConsumerAuth as o, type OmsError as p, type OmsGetToken as q, type OmsOffer as r, type OmsOrder as s, type OmsOrderSummary as t, type OmsPlan as u, type OmsPlanChangeOption as v, type OmsPlanOperation as w, type OmsPlanSkipWarning as x, type OmsPlanSkipWarningKey as y, type OmsPrescription as z };
@@ -1,7 +1,7 @@
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 { E as EverfurResult } from './EverfurResult.d-D_-254ZY.js';
3
3
  import { U as UserRef } from './ids.d-B2GAAifq.js';
4
- import { T as TransportPort, d as EverfurRequest } from './config.d-B4-Mrwq2.js';
4
+ import { T as TransportPort, d as EverfurRequest } from './config.d-DopRLD4f.js';
5
5
 
6
6
  /**
7
7
  * A minted session token with the expiry the minter knows. `expiresAt` is what `mintPartnerSession` returns
@@ -1,7 +1,7 @@
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 { E as EverfurResult } from './EverfurResult.d-BFH-3s6E.cjs';
3
3
  import { U as UserRef } from './ids.d-B2GAAifq.cjs';
4
- import { T as TransportPort, d as EverfurRequest } from './config.d-84fNJFv9.cjs';
4
+ import { T as TransportPort, d as EverfurRequest } from './config.d-Cy_hJBJG.cjs';
5
5
 
6
6
  /**
7
7
  * A minted session token with the expiry the minter knows. `expiresAt` is what `mintPartnerSession` returns