@apextelemed/partner-core 0.18.0-dev.59 → 0.18.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 (50) hide show
  1. package/dist/api/index.d.ts +23 -2
  2. package/dist/api/index.js +4 -4
  3. package/dist/api/index.jsx +8 -4
  4. package/dist/chunk/{AXCXMZKP.js → 22EFLJGO.js} +18 -8
  5. package/dist/chunk/22EFLJGO.js.map +1 -0
  6. package/dist/chunk/{P6RRDH3K.jsx → 2Q4GK4WD.jsx} +41 -3
  7. package/dist/chunk/{C4V7G2WO.js → BPF2SSKF.js} +3 -3
  8. package/dist/chunk/{C4V7G2WO.js.map → BPF2SSKF.js.map} +1 -1
  9. package/dist/chunk/{HWUNDWNY.js → CED3IYWX.js} +40 -4
  10. package/dist/chunk/CED3IYWX.js.map +1 -0
  11. package/dist/chunk/ESNAWOHG.jsx +1 -0
  12. package/dist/chunk/{23TRH45I.jsx → FL3DS5WN.jsx} +370 -131
  13. package/dist/chunk/{B3IHYFCS.js → GSYL4J57.js} +2712 -1452
  14. package/dist/chunk/GSYL4J57.js.map +1 -0
  15. package/dist/chunk/{HECRSRX5.jsx → GULO22W6.jsx} +2 -2
  16. package/dist/chunk/{IJR3CERD.js → GYAT2X65.js} +51 -3
  17. package/dist/chunk/GYAT2X65.js.map +1 -0
  18. package/dist/chunk/{QMMIJ5T5.jsx → I7L5WVA2.jsx} +20 -7
  19. package/dist/chunk/{WSP34CNN.jsx → PWEK34Q4.jsx} +50 -2
  20. package/dist/chunk/{OMHZD4JU.jsx → U5DE7VZP.jsx} +3156 -2314
  21. package/dist/chunk/{6D2HEGRD.js → UM5K75Y4.js} +3 -3
  22. package/dist/chunk/{6D2HEGRD.js.map → UM5K75Y4.js.map} +1 -1
  23. package/dist/chunk/{QN3GGUYU.jsx → W5QWCMTE.jsx} +2 -2
  24. package/dist/chunk/{PJVEDHQN.js → XPYBZU45.js} +240 -14
  25. package/dist/chunk/XPYBZU45.js.map +1 -0
  26. package/dist/chunk/XZVVZIRZ.js +3 -0
  27. package/dist/chunk/XZVVZIRZ.js.map +1 -0
  28. package/dist/{client-DUg3WI5F.d.ts → client-BQ8AEx5S.d.ts} +191 -2
  29. package/dist/flows/index.d.ts +113 -2
  30. package/dist/flows/index.js +6 -6
  31. package/dist/flows/index.jsx +14 -6
  32. package/dist/index/index.d.ts +26 -5
  33. package/dist/index/index.js +8 -8
  34. package/dist/index/index.jsx +22 -8
  35. package/dist/pages/index.d.ts +2 -2
  36. package/dist/pages/index.js +5 -5
  37. package/dist/pages/index.jsx +5 -5
  38. package/dist/stores/index.d.ts +1 -1
  39. package/dist/stores/index.js +2 -2
  40. package/dist/stores/index.jsx +2 -2
  41. package/dist/theme/member-portal.css +43 -0
  42. package/package.json +1 -1
  43. package/dist/chunk/ACE7M2YA.jsx +0 -1
  44. package/dist/chunk/AXCXMZKP.js.map +0 -1
  45. package/dist/chunk/B3IHYFCS.js.map +0 -1
  46. package/dist/chunk/HWUNDWNY.js.map +0 -1
  47. package/dist/chunk/IJR3CERD.js.map +0 -1
  48. package/dist/chunk/JSHO46VZ.js +0 -3
  49. package/dist/chunk/JSHO46VZ.js.map +0 -1
  50. package/dist/chunk/PJVEDHQN.js.map +0 -1
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=XZVVZIRZ.js.map
3
+ //# sourceMappingURL=XZVVZIRZ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"XZVVZIRZ.js"}
@@ -29,6 +29,16 @@ interface RegisterPayload {
29
29
  state: string;
30
30
  zip: string;
31
31
  };
32
+ /**
33
+ * Opt-in to text messages, given at signup. Optional and never required: a
34
+ * consent the server can't record (text out of date, number unusable, texts
35
+ * not set up) is dropped without failing the registration. `textVersion` is
36
+ * the version of the wording the person was shown (`fetchSmsConfig()`).
37
+ */
38
+ smsConsent?: {
39
+ granted: true;
40
+ textVersion: string;
41
+ };
32
42
  }
33
43
  interface RegisterAndSubscribePayload extends RegisterPayload {
34
44
  opaqueData?: Record<string, unknown>;
@@ -161,6 +171,50 @@ interface UpdateProfilePayload {
161
171
  /** Last-entered survey vitals, persisted for cross-device carry-over. */
162
172
  heightIn?: number;
163
173
  weightLb?: number;
174
+ /**
175
+ * Grant or withdraw consent to text messages. A phone change in the same
176
+ * request is applied first, so a grant covers the NEW number. `textVersion`
177
+ * is the version of the wording shown (`fetchSmsConfig()`); required to grant.
178
+ */
179
+ smsConsent?: {
180
+ granted: boolean;
181
+ textVersion?: string;
182
+ source?: 'intake' | 'profile';
183
+ };
184
+ }
185
+ /** Outcome of a consent change sent on `PATCH /users/me`. */
186
+ type SmsConsentStatus = 'granted' | 'already_granted' | 'revoked' | 'nothing_to_revoke' | 'refused';
187
+ /** Why a grant was refused. Alongside other profile fields it comes back as
188
+ * `smsConsent.reason`; on a request that ONLY changes consent it is a 409's `reason`. */
189
+ type SmsRefusalReason = 'stale_text' | 'no_phone' | 'sms_unavailable';
190
+ interface SmsConsentResult {
191
+ status: SmsConsentStatus;
192
+ reason?: SmsRefusalReason;
193
+ }
194
+ interface UpdateProfileResponse {
195
+ user?: User;
196
+ /** Present only when the request carried `smsConsent`. */
197
+ smsConsent?: SmsConsentResult;
198
+ }
199
+ /** One text-message event the tenant switched on, as this member has it set. */
200
+ interface UserSmsEvent {
201
+ key: string;
202
+ label: string;
203
+ enabled: boolean;
204
+ }
205
+ /** The member's text-message state (`GET /users/me/sms`, and the reply to saving preferences). */
206
+ interface UserSmsState {
207
+ /** False when the tenant doesn't text customers — show nothing. */
208
+ available: boolean;
209
+ /** E.164, or null when no number is on file. */
210
+ phone: string | null;
211
+ consented: boolean;
212
+ /** The member replied STOP: a carrier-level block this site cannot lift. */
213
+ optedOutByStop: boolean;
214
+ /** The number texts come from — what the member texts START to. */
215
+ fromNumber?: string;
216
+ /** Only the events the tenant switched on. */
217
+ events: UserSmsEvent[];
164
218
  }
165
219
  interface UpdatePaymentMethodPayload {
166
220
  /** Provider-neutral tokenized card from useCardTokenizer().tokenize() (AuthNet
@@ -234,6 +288,76 @@ interface EmailNotificationSettings {
234
288
  enabledEvents: Record<string, boolean>;
235
289
  }
236
290
  /** `self_serve`: the admin switches it. `request`: the platform team turns it on when asked. */
291
+ /** Why customer texts aren't going out yet, from `GET /admin/sms/settings`. */
292
+ type AdminSmsNotReadyReason = 'feature_off' | 'not_enabled' | 'not_registered';
293
+ interface AdminSmsSettings {
294
+ /** The `sms` feature is on for this tenant (it is request-only: a number is registered with carriers first). */
295
+ feature: boolean;
296
+ /** The tenant has switched texts on. */
297
+ enabled: boolean;
298
+ /** Texts can actually go out right now. */
299
+ ready: boolean;
300
+ /** Present when `ready` is false. */
301
+ notReadyReason?: AdminSmsNotReadyReason;
302
+ fromNumber: string | null;
303
+ brandName: string;
304
+ termsUrl: string | null;
305
+ privacyUrl: string | null;
306
+ }
307
+ /** How a message splits into SMS segments (computed by the backend; the editor mirrors it live). */
308
+ interface AdminSmsSegmentInfo {
309
+ encoding: 'GSM-7' | 'UCS-2';
310
+ /** Characters counted the way the encoding counts them (GSM extension characters are 2). */
311
+ units: number;
312
+ segments: number;
313
+ }
314
+ interface AdminSmsTemplate {
315
+ key: string;
316
+ label: string;
317
+ enabled: boolean;
318
+ body: string;
319
+ defaultBody: string;
320
+ /** `body` differs from `defaultBody`. */
321
+ customized: boolean;
322
+ /** The only `{{tokens}}` this event's body may use. */
323
+ tokens: string[];
324
+ /** `body` rendered with sample values. */
325
+ preview: string;
326
+ segments: AdminSmsSegmentInfo;
327
+ }
328
+ /**
329
+ * One event's change on `PUT /admin/sms/templates`. A value sets it, `null`
330
+ * resets it to the default, and leaving a field out keeps it as it is.
331
+ */
332
+ interface AdminSmsTemplateChange {
333
+ enabled?: boolean | null;
334
+ body?: string | null;
335
+ }
336
+ /** `null` resets the whole event (both fields) to its defaults. */
337
+ type AdminSmsTemplateChanges = Record<string, AdminSmsTemplateChange | null>;
338
+ type AdminSmsTestStatus = 'sent' | 'mock' | 'failed' | 'blocked' | 'not_sent';
339
+ interface AdminSmsTestResult {
340
+ status: AdminSmsTestStatus;
341
+ error?: string;
342
+ reason?: string;
343
+ }
344
+ interface AdminSmsMessage {
345
+ id: string;
346
+ /** The recipient, masked. */
347
+ to: string;
348
+ templateKey: string;
349
+ status: string;
350
+ error: string | null;
351
+ createdAt: string;
352
+ deliveredAt: string | null;
353
+ }
354
+ interface AdminSmsMessagesParams {
355
+ status?: string;
356
+ /** The previous page's `nextBefore`. */
357
+ before?: string;
358
+ limit?: number;
359
+ [key: string]: unknown;
360
+ }
237
361
  type TenantFeatureAccess = 'self_serve' | 'request';
238
362
  /** One optional feature of the tenant, as the backend describes it. */
239
363
  interface TenantFeature {
@@ -526,12 +650,16 @@ declare class ApiError extends Error {
526
650
  /** The response body's `details`, untouched, for the few refusals whose
527
651
  * specifics a caller acts on (e.g. which prices are missing). Never shown as prose. */
528
652
  readonly details?: unknown;
653
+ /** The response body's `reason`, when the endpoint names why it refused (e.g.
654
+ * `stale_text` on a text-message consent). Branch on this, never on message. */
655
+ readonly reason?: string;
529
656
  constructor(message: string, opts?: {
530
657
  status?: number;
531
658
  ambiguous?: boolean;
532
659
  cause?: unknown;
533
660
  code?: string;
534
661
  details?: unknown;
662
+ reason?: string;
535
663
  });
536
664
  }
537
665
  /**
@@ -1066,7 +1194,10 @@ declare const usersApi: {
1066
1194
  getProfile(opts?: {
1067
1195
  authToken?: string;
1068
1196
  }): Promise<ApiResponse<User>>;
1069
- updateProfile(payload: UpdateProfilePayload): Promise<unknown>;
1197
+ updateProfile(payload: UpdateProfilePayload): Promise<UpdateProfileResponse>;
1198
+ getSmsState(): Promise<UserSmsState>;
1199
+ /** Only the named events change; the reply is the full state again. */
1200
+ setSmsEvents(events: Record<string, boolean>): Promise<UserSmsState>;
1070
1201
  };
1071
1202
  type MemberSurveyMode = 'initial' | 'refill';
1072
1203
  /** List entry for a member's own submitted surveys — served from the backend's
@@ -1439,6 +1570,18 @@ interface AdminFillSchedule {
1439
1570
  /** Whole days from the next fill to the next charge; negative when the charge comes first. */
1440
1571
  chargeOffsetDays: number | null;
1441
1572
  needsReviewAt: string | null;
1573
+ /** When an admin last re-timed this fill by hand. Absent on older backends. */
1574
+ retimedAt?: string | null;
1575
+ /**
1576
+ * Whether the next fill can be re-timed now, and why not. Absent on backends
1577
+ * without the re-time endpoint — offer no re-time action then.
1578
+ */
1579
+ retime?: {
1580
+ allowed: boolean;
1581
+ reason: string | null;
1582
+ /** Days the check-in opens before the fill. */
1583
+ checkInLeadDays: number;
1584
+ };
1442
1585
  notices: Array<{
1443
1586
  code: 'awaiting_shipment' | 'pharmacy_send_passed' | 'based_on_send' | 'anchor_not_recorded' | 'fill_date_passed' | 'needs_review' | 'no_live_cycle' | string;
1444
1587
  message: string;
@@ -1672,6 +1815,24 @@ interface AdminSubscriptionPatch {
1672
1815
  currentPeriodStart?: string;
1673
1816
  currentPeriodEnd?: string;
1674
1817
  }
1818
+ interface AdminRetimeFillBody {
1819
+ /** New fill date, YYYY-MM-DD; tomorrow or later, within 180 days. */
1820
+ fillDate: string;
1821
+ }
1822
+ interface AdminRetimeSnapshot {
1823
+ renewalId: string;
1824
+ status: string;
1825
+ nextFillDate: string | null;
1826
+ checkInAt: string | null;
1827
+ }
1828
+ interface AdminRetimeFillResult {
1829
+ before: AdminRetimeSnapshot;
1830
+ after: AdminRetimeSnapshot;
1831
+ /** Days the fill moved; negative is earlier. */
1832
+ shiftDays: number;
1833
+ fillSchedule: AdminFillSchedule | null;
1834
+ warnings: string[];
1835
+ }
1675
1836
  interface AdminSubscriptionWriteResult {
1676
1837
  subscription: AdminSubscriptionDetail;
1677
1838
  before: AdminSubscriptionDetail;
@@ -2200,6 +2361,12 @@ declare const adminApi: {
2200
2361
  * for gateway-billed subscriptions — their schedule lives at Authorize.Net.
2201
2362
  */
2202
2363
  updateSubscription(id: string, body: AdminSubscriptionPatch): Promise<AdminSubscriptionWriteResult>;
2364
+ /**
2365
+ * Move a subscription's next refill and its check-in while unopened. Never
2366
+ * touches billing (use `updateSubscription` for that). 409 once the refill is
2367
+ * ordered or before the last order has gone out (`fillSchedule.retime.reason`).
2368
+ */
2369
+ retimeNextFill(subscriptionId: string, body: AdminRetimeFillBody): Promise<AdminRetimeFillResult>;
2203
2370
  pauseSubscription(id: string): Promise<AdminSubscriptionWriteResult>;
2204
2371
  resumeSubscription(id: string): Promise<AdminSubscriptionWriteResult>;
2205
2372
  /** Close a pending/indeterminate billing attempt so the engine can move on. */
@@ -2347,6 +2514,28 @@ declare const adminApi: {
2347
2514
  emailed: boolean;
2348
2515
  alreadyRequested: boolean;
2349
2516
  }>;
2517
+ /** Is this site set up to text customers, and from what number. Needs `settings.write`. */
2518
+ getSmsSettings(): Promise<AdminSmsSettings>;
2519
+ /** Every event's text, as saved. Needs `emailTemplates.write`. */
2520
+ getSmsTemplates(): Promise<{
2521
+ templates: AdminSmsTemplate[];
2522
+ }>;
2523
+ /**
2524
+ * Change some events' texts. Send ONLY what changed: a missing event or field
2525
+ * is kept, `null` resets to the default. Rejects (400) with the server's
2526
+ * reason when a body doesn't start with `{{siteName}}`, runs past 300
2527
+ * characters, or uses a token the event doesn't have. Returns the full list.
2528
+ */
2529
+ saveSmsTemplates(templates: AdminSmsTemplateChanges): Promise<{
2530
+ templates: AdminSmsTemplate[];
2531
+ }>;
2532
+ /** Text the SAVED version of an event to the signed-in admin's own phone. */
2533
+ sendSmsTemplateTest(key: string): Promise<AdminSmsTestResult>;
2534
+ /** The send log, newest first. Needs `patient.support`. Page with `nextBefore`. */
2535
+ listSmsMessages(params?: AdminSmsMessagesParams): Promise<{
2536
+ messages: AdminSmsMessage[];
2537
+ nextBefore: string | null;
2538
+ }>;
2350
2539
  getEmailNotifications(): Promise<EmailNotificationSettings>;
2351
2540
  saveEmailNotifications(settings: EmailNotificationSettings): Promise<{
2352
2541
  success: boolean;
@@ -2988,4 +3177,4 @@ declare const affiliatePortalApi: {
2988
3177
  track(refCode: string, landingPage?: string): Promise<AffiliateTrackResponse>;
2989
3178
  };
2990
3179
 
2991
- export { type AdminRecurringPricePoint as $, ADMIN_ROLES as A, type AdminCustomerSupport as B, type AdminCustomerSupportThread as C, type AdminDashboardStats as D, type AdminFillAnchor as E, type AdminFillSchedule as F, type AdminInviteResult as G, type AdminLifecycle as H, type AdminLifecycleBucket as I, type AdminListParams as J, type AdminMe as K, type AdminOffer as L, type AdminOfferBase as M, type AdminOfferGrant as N, type AdminOfferGrantBase as O, type AdminOfferInput as P, type AdminOrderSummary as Q, type AdminOrphanReason as R, type AdminOrphanedDosePrice as S, type AdminPayment as T, type AdminPaymentDetail as U, type AdminProduct as V, type AdminProductOverlayField as W, type AdminProductPharmacy as X, type AdminProductStrength as Y, type AdminPromoCode as Z, type AdminPromoCodeInput as _, type AddPharmacyBody as a, type CatalogFulfillment as a$, type AdminRecurringRevenue as a0, type AdminRefundResult as a1, type AdminRole as a2, type AdminSale as a3, type AdminSaleInput as a4, type AdminScheduledRefund as a5, type AdminScheduledRefundProblem as a6, type AdminSubscription as a7, type AdminSubscriptionDetail as a8, type AdminSubscriptionPatch as a9, type AttributionMethod as aA, type AuthTokens as aB, type BillingReminderSettings as aC, type CatalogAvailabilityItem as aD, type CatalogAvailabilityReason as aE, type CatalogAvailabilityResult as aF, type CatalogClassification as aG, type CatalogConversionChoice as aH, type CatalogConversionCommitResult as aI, type CatalogConversionDose as aJ, type CatalogConversionDoseMatch as aK, type CatalogConversionFinding as aL, type CatalogConversionPointers as aM, type CatalogConversionPrepareResult as aN, type CatalogConversionPreview as aO, type CatalogConversionRun as aP, type CatalogConversionSource as aQ, type CatalogConversionStage as aR, type CatalogConversionTarget as aS, type CatalogConversionUndoOptions as aT, type CatalogConversionUndoResult as aU, type CatalogDose as aV, type CatalogDoseInput as aW, type CatalogDoseModel as aX, type CatalogDoseSuggestion as aY, type CatalogDoseSuggestions as aZ, type CatalogEquivalentSuggestions as a_, type AdminSubscriptionWriteResult as aa, type AdminSupportCustomer as ab, type AdminSupportStats as ac, type AdminSupportThread as ad, type AdminTeamInvite as ae, type AdminTeamMember as af, type AdminWebhookEvent as ag, type Affiliate as ah, type AffiliateAuthTokens as ai, type AffiliateClickRecord as aj, type AffiliateConversion as ak, type AffiliateDashboardLinks as al, type AffiliateDashboardProfile as am, type AffiliateDashboardStats as an, type AffiliateDownlineMember as ao, type AffiliateEarningsBreakdown as ap, type AffiliatePaymentMethod as aq, type AffiliateProgram as ar, type AffiliateRegisterInput as as, type AffiliateRegisterResponse as at, type AffiliateSession as au, type AffiliateStatsResponse as av, type AffiliateStatus as aw, type AffiliateTrackResponse as ax, ApiError as ay, type ApiResponse as az, type AddPharmacyDoseMatch as b, type SupportRealtimeToken as b$, type CatalogFulfillmentInput as b0, type CatalogItem as b1, type CatalogItemInput as b2, type CatalogMappableDrug as b3, type CatalogMatrixCell as b4, type CatalogProduct as b5, type CatalogReadiness as b6, type CategoryMetadata as b7, type CheckoutAddress as b8, type CheckoutPayload as b9, type Order as bA, type OrderItemInput as bB, type PaginationParams as bC, type PaymentCallbackPayload as bD, type PaymentInitiatePayload as bE, type PaymentType as bF, type PendingRenewalSurvey as bG, type Placeholder as bH, type PlaceholderKind as bI, type ProductSaleSummary as bJ, type PromoValidationResponse as bK, type PublicCategory as bL, type RegisterAndSubscribePayload as bM, type RegisterPayload as bN, type RenewalStatus as bO, SUPPORT_ATTACHMENT_MAX_BYTES as bP, SUPPORT_ATTACHMENT_MIME_TYPES as bQ, type SelectDrugPayload as bR, type SendMessagePayload as bS, type SendToPharmacyPayload as bT, type SubscriptionPreview as bU, type SubscriptionPreviewLine as bV, type SubscriptionPreviewPayload as bW, type SupportAttachment as bX, type SupportChannel as bY, type SupportChannelSettings as bZ, type SupportMessage as b_, type CheckoutResult as ba, type CommissionConfig as bb, type CommissionStatus as bc, type CompleteSurveyPayload as bd, type CreateAffiliatePayload as be, type CreateAffiliateProgramPayload as bf, type CreateOrderPayload as bg, type CreateRequestPayload as bh, type CreateSubscriptionPayload as bi, type CustomTemplate as bj, type CustomTemplateInput as bk, type CustomerDiscountConfig as bl, type DeliveryInfo as bm, type DiscountType as bn, type EmailNotificationSettings as bo, type EmailTemplatesMap as bp, type LoginPayload as bq, type MemberOffer as br, type MemberPrescriptionRequest as bs, type MemberSurveyMode as bt, type MemberSurveyResponseSummary as bu, type MemberSurveyTranscript as bv, type MemberSurveyTranscriptItem as bw, type MemberSurveyTranscriptSection as bx, type MembersMeResponse as by, type OfferGrantState as bz, type AddPharmacyDoseOption as c, type SupportThread as c0, type SupportThreadCategory as c1, type SupportThreadStatus as c2, type SurveySubmitPayload as c3, type TemplatePlaceholdersMap as c4, type TemplateText as c5, type TenantFeature as c6, type TenantFeatureAccess as c7, type TokenTrackName as c8, type UpdateAffiliatePayload as c9, ordersApi as cA, paymentsApi as cB, productsApi as cC, promoCodesApi as cD, setAffiliateTokens as cE, setTokens as cF, subscriptionsApi as cG, supportApi as cH, usersApi as cI, type UpdateAffiliateProgramPayload as ca, type UpdatePaymentMethodPayload as cb, type UpdateProfilePayload as cc, type User as cd, addressesApi as ce, adminAffiliatesApi as cf, adminApi as cg, adminCatalogApi as ch, adminCatalogConversionApi as ci, adminProductPharmaciesApi as cj, affiliateAuthStorageKey as ck, affiliatePortalApi as cl, apexApi as cm, apiFetch as cn, authApi as co, authStorageKey as cp, catalogApi as cq, clearAffiliateTokens as cr, clearTokens as cs, getAffiliateTokens as ct, getTokens as cu, membersApi as cv, messagesApi as cw, newIdempotencyKey as cx, offersApi as cy, onTokensCleared as cz, type AddPharmacyFinding as d, type AddPharmacyMatchQuestion as e, type AddPharmacyMatchSource as f, type AddPharmacyPlan as g, type AddPharmacyPrice as h, type AddPharmacyResult as i, type AddPharmacyStrengthAfter as j, type AddPharmacyStrengthBefore as k, type AddressVerifyResult as l, type AdminApexDrug as m, type AdminApexItemStatus as n, type AdminBillingAttempt as o, type AdminCategory as p, type AdminCategoryInput as q, type AdminCategoryUpdate as r, type AdminCustomer as s, type AdminCustomerFacts as t, type AdminCustomerFunnel as u, type AdminCustomerListParams as v, type AdminCustomerOverview as w, type AdminCustomerProfile as x, type AdminCustomerRequest as y, type AdminCustomerRow as z };
3180
+ export { type AdminRecurringPricePoint as $, ADMIN_ROLES as A, type AdminCustomerSupport as B, type AdminCustomerSupportThread as C, type AdminDashboardStats as D, type AdminFillAnchor as E, type AdminFillSchedule as F, type AdminInviteResult as G, type AdminLifecycle as H, type AdminLifecycleBucket as I, type AdminListParams as J, type AdminMe as K, type AdminOffer as L, type AdminOfferBase as M, type AdminOfferGrant as N, type AdminOfferGrantBase as O, type AdminOfferInput as P, type AdminOrderSummary as Q, type AdminOrphanReason as R, type AdminOrphanedDosePrice as S, type AdminPayment as T, type AdminPaymentDetail as U, type AdminProduct as V, type AdminProductOverlayField as W, type AdminProductPharmacy as X, type AdminProductStrength as Y, type AdminPromoCode as Z, type AdminPromoCodeInput as _, type AddPharmacyBody as a, type CatalogConversionPreview as a$, type AdminRecurringRevenue as a0, type AdminRefundResult as a1, type AdminRetimeFillBody as a2, type AdminRetimeFillResult as a3, type AdminRetimeSnapshot as a4, type AdminRole as a5, type AdminSale as a6, type AdminSaleInput as a7, type AdminScheduledRefund as a8, type AdminScheduledRefundProblem as a9, type AffiliateDashboardStats as aA, type AffiliateDownlineMember as aB, type AffiliateEarningsBreakdown as aC, type AffiliatePaymentMethod as aD, type AffiliateProgram as aE, type AffiliateRegisterInput as aF, type AffiliateRegisterResponse as aG, type AffiliateSession as aH, type AffiliateStatsResponse as aI, type AffiliateStatus as aJ, type AffiliateTrackResponse as aK, ApiError as aL, type ApiResponse as aM, type AttributionMethod as aN, type AuthTokens as aO, type BillingReminderSettings as aP, type CatalogAvailabilityItem as aQ, type CatalogAvailabilityReason as aR, type CatalogAvailabilityResult as aS, type CatalogClassification as aT, type CatalogConversionChoice as aU, type CatalogConversionCommitResult as aV, type CatalogConversionDose as aW, type CatalogConversionDoseMatch as aX, type CatalogConversionFinding as aY, type CatalogConversionPointers as aZ, type CatalogConversionPrepareResult as a_, type AdminSmsMessage as aa, type AdminSmsMessagesParams as ab, type AdminSmsNotReadyReason as ac, type AdminSmsSegmentInfo as ad, type AdminSmsSettings as ae, type AdminSmsTemplate as af, type AdminSmsTemplateChange as ag, type AdminSmsTemplateChanges as ah, type AdminSmsTestResult as ai, type AdminSmsTestStatus as aj, type AdminSubscription as ak, type AdminSubscriptionDetail as al, type AdminSubscriptionPatch as am, type AdminSubscriptionWriteResult as an, type AdminSupportCustomer as ao, type AdminSupportStats as ap, type AdminSupportThread as aq, type AdminTeamInvite as ar, type AdminTeamMember as as, type AdminWebhookEvent as at, type Affiliate as au, type AffiliateAuthTokens as av, type AffiliateClickRecord as aw, type AffiliateConversion as ax, type AffiliateDashboardLinks as ay, type AffiliateDashboardProfile as az, type AddPharmacyDoseMatch as b, type RenewalStatus as b$, type CatalogConversionRun as b0, type CatalogConversionSource as b1, type CatalogConversionStage as b2, type CatalogConversionTarget as b3, type CatalogConversionUndoOptions as b4, type CatalogConversionUndoResult as b5, type CatalogDose as b6, type CatalogDoseInput as b7, type CatalogDoseModel as b8, type CatalogDoseSuggestion as b9, type DiscountType as bA, type EmailNotificationSettings as bB, type EmailTemplatesMap as bC, type LoginPayload as bD, type MemberOffer as bE, type MemberPrescriptionRequest as bF, type MemberSurveyMode as bG, type MemberSurveyResponseSummary as bH, type MemberSurveyTranscript as bI, type MemberSurveyTranscriptItem as bJ, type MemberSurveyTranscriptSection as bK, type MembersMeResponse as bL, type OfferGrantState as bM, type Order as bN, type OrderItemInput as bO, type PaginationParams as bP, type PaymentCallbackPayload as bQ, type PaymentInitiatePayload as bR, type PaymentType as bS, type PendingRenewalSurvey as bT, type Placeholder as bU, type PlaceholderKind as bV, type ProductSaleSummary as bW, type PromoValidationResponse as bX, type PublicCategory as bY, type RegisterAndSubscribePayload as bZ, type RegisterPayload as b_, type CatalogDoseSuggestions as ba, type CatalogEquivalentSuggestions as bb, type CatalogFulfillment as bc, type CatalogFulfillmentInput as bd, type CatalogItem as be, type CatalogItemInput as bf, type CatalogMappableDrug as bg, type CatalogMatrixCell as bh, type CatalogProduct as bi, type CatalogReadiness as bj, type CategoryMetadata as bk, type CheckoutAddress as bl, type CheckoutPayload as bm, type CheckoutResult as bn, type CommissionConfig as bo, type CommissionStatus as bp, type CompleteSurveyPayload as bq, type CreateAffiliatePayload as br, type CreateAffiliateProgramPayload as bs, type CreateOrderPayload as bt, type CreateRequestPayload as bu, type CreateSubscriptionPayload as bv, type CustomTemplate as bw, type CustomTemplateInput as bx, type CustomerDiscountConfig as by, type DeliveryInfo as bz, type AddPharmacyDoseOption as c, usersApi as c$, SUPPORT_ATTACHMENT_MAX_BYTES as c0, SUPPORT_ATTACHMENT_MIME_TYPES as c1, type SelectDrugPayload as c2, type SendMessagePayload as c3, type SendToPharmacyPayload as c4, type SmsConsentResult as c5, type SmsConsentStatus as c6, type SmsRefusalReason as c7, type SubscriptionPreview as c8, type SubscriptionPreviewLine as c9, adminCatalogApi as cA, adminCatalogConversionApi as cB, adminProductPharmaciesApi as cC, affiliateAuthStorageKey as cD, affiliatePortalApi as cE, apexApi as cF, apiFetch as cG, authApi as cH, authStorageKey as cI, catalogApi as cJ, clearAffiliateTokens as cK, clearTokens as cL, getAffiliateTokens as cM, getTokens as cN, membersApi as cO, messagesApi as cP, newIdempotencyKey as cQ, offersApi as cR, onTokensCleared as cS, ordersApi as cT, paymentsApi as cU, productsApi as cV, promoCodesApi as cW, setAffiliateTokens as cX, setTokens as cY, subscriptionsApi as cZ, supportApi as c_, type SubscriptionPreviewPayload as ca, type SupportAttachment as cb, type SupportChannel as cc, type SupportChannelSettings as cd, type SupportMessage as ce, type SupportRealtimeToken as cf, type SupportThread as cg, type SupportThreadCategory as ch, type SupportThreadStatus as ci, type SurveySubmitPayload as cj, type TemplatePlaceholdersMap as ck, type TemplateText as cl, type TenantFeature as cm, type TenantFeatureAccess as cn, type TokenTrackName as co, type UpdateAffiliatePayload as cp, type UpdateAffiliateProgramPayload as cq, type UpdatePaymentMethodPayload as cr, type UpdateProfilePayload as cs, type UpdateProfileResponse as ct, type User as cu, type UserSmsEvent as cv, type UserSmsState as cw, addressesApi as cx, adminAffiliatesApi as cy, adminApi as cz, type AddPharmacyFinding as d, type AddPharmacyMatchQuestion as e, type AddPharmacyMatchSource as f, type AddPharmacyPlan as g, type AddPharmacyPrice as h, type AddPharmacyResult as i, type AddPharmacyStrengthAfter as j, type AddPharmacyStrengthBefore as k, type AddressVerifyResult as l, type AdminApexDrug as m, type AdminApexItemStatus as n, type AdminBillingAttempt as o, type AdminCategory as p, type AdminCategoryInput as q, type AdminCategoryUpdate as r, type AdminCustomer as s, type AdminCustomerFacts as t, type AdminCustomerFunnel as u, type AdminCustomerListParams as v, type AdminCustomerOverview as w, type AdminCustomerProfile as x, type AdminCustomerRequest as y, type AdminCustomerRow as z };
@@ -1,5 +1,5 @@
1
1
  import { Accessor, Resource } from 'solid-js';
2
- import { l as AddressVerifyResult, b8 as CheckoutAddress, aF as CatalogAvailabilityResult, cd as User, bm as DeliveryInfo, bO as RenewalStatus, bG as PendingRenewalSurvey, I as AdminLifecycleBucket, w as AdminCustomerOverview, a8 as AdminSubscriptionDetail, y as AdminCustomerRequest, c1 as SupportThreadCategory, bY as SupportChannel, b5 as CatalogProduct, ak as AffiliateConversion, ao as AffiliateDownlineMember, al as AffiliateDashboardLinks, an as AffiliateDashboardStats, bK as PromoValidationResponse, br as MemberOffer, aG as CatalogClassification, aX as CatalogDoseModel, S as AdminOrphanedDosePrice, V as AdminProduct, b1 as CatalogItem, aY as CatalogDoseSuggestion, b3 as CatalogMappableDrug, a_ as CatalogEquivalentSuggestions, b6 as CatalogReadiness, aU as CatalogConversionUndoResult, aO as CatalogConversionPreview, aK as CatalogConversionDoseMatch, aQ as CatalogConversionSource, aJ as CatalogConversionDose, aT as CatalogConversionUndoOptions, aI as CatalogConversionCommitResult, aL as CatalogConversionFinding, aH as CatalogConversionChoice, g as AddPharmacyPlan, i as AddPharmacyResult, f as AddPharmacyMatchSource, a as AddPharmacyBody, d as AddPharmacyFinding } from '../client-DUg3WI5F.js';
2
+ import { l as AddressVerifyResult, bl as CheckoutAddress, aS as CatalogAvailabilityResult, cu as User, bz as DeliveryInfo, b$ as RenewalStatus, bT as PendingRenewalSurvey, I as AdminLifecycleBucket, w as AdminCustomerOverview, al as AdminSubscriptionDetail, y as AdminCustomerRequest, ch as SupportThreadCategory, cc as SupportChannel, bi as CatalogProduct, ax as AffiliateConversion, aB as AffiliateDownlineMember, ay as AffiliateDashboardLinks, aA as AffiliateDashboardStats, bX as PromoValidationResponse, bE as MemberOffer, aT as CatalogClassification, b8 as CatalogDoseModel, S as AdminOrphanedDosePrice, V as AdminProduct, be as CatalogItem, b9 as CatalogDoseSuggestion, bg as CatalogMappableDrug, bb as CatalogEquivalentSuggestions, bj as CatalogReadiness, b5 as CatalogConversionUndoResult, a$ as CatalogConversionPreview, aX as CatalogConversionDoseMatch, b1 as CatalogConversionSource, aW as CatalogConversionDose, b4 as CatalogConversionUndoOptions, aV as CatalogConversionCommitResult, aY as CatalogConversionFinding, aU as CatalogConversionChoice, g as AddPharmacyPlan, i as AddPharmacyResult, f as AddPharmacyMatchSource, a as AddPharmacyBody, d as AddPharmacyFinding, cw as UserSmsState, cv as UserSmsEvent } from '../client-BQ8AEx5S.js';
3
3
  import { C as CartItem } from '../cart-o6DpAu5y.js';
4
4
  export { U as UseSurveyV2FlowOptions, u as useSurveyV2Flow } from '../surveyV2-BgQHK0GE.js';
5
5
  import { EmbedEvent } from '@apextelemed/survey-solid';
@@ -451,6 +451,44 @@ interface CartCheckoutFlow {
451
451
  */
452
452
  declare function useCartCheckoutFlow(): CartCheckoutFlow;
453
453
 
454
+ interface SmsConsentOffer {
455
+ /** The consent wording, verbatim. */
456
+ text: string;
457
+ /** Version of `text`; goes back with the grant. */
458
+ textVersion: string;
459
+ /** Sender name the wording refers to, when the tenant set one. */
460
+ brandName?: string;
461
+ termsUrl?: string;
462
+ privacyUrl?: string;
463
+ }
464
+ /** What flows put on the register / register-and-subscribe / PATCH /users/me wire. */
465
+ interface SmsConsentGrant {
466
+ granted: true;
467
+ textVersion: string;
468
+ }
469
+ interface SmsConsent {
470
+ /**
471
+ * The wording to show beside the checkbox. null while the tenant's config is
472
+ * loading, when texts are off, or when it couldn't be loaded — render nothing.
473
+ */
474
+ offer: Accessor<SmsConsentOffer | null>;
475
+ /** True when the person has ticked the box. Always false while `enabled()` is false. */
476
+ checked: Accessor<boolean>;
477
+ setChecked: (v: boolean) => void;
478
+ /** False while the phone is empty or invalid: show the box disabled, with `hint()`. */
479
+ enabled: Accessor<boolean>;
480
+ /** Why the box is disabled; null when it isn't. */
481
+ hint: Accessor<string | null>;
482
+ /** The grant to send, or undefined to send nothing (unchecked / disabled / no offer). */
483
+ grant: () => SmsConsentGrant | undefined;
484
+ /**
485
+ * What to persist in the flow's draft: the version of the wording the person
486
+ * ticked, or undefined. A version rather than a boolean so a restored draft
487
+ * only re-ticks the box when the wording is still the one they agreed to.
488
+ */
489
+ draftVersion: Accessor<string | undefined>;
490
+ }
491
+
454
492
  type SignupOutcome = {
455
493
  kind: 'in_progress';
456
494
  }
@@ -528,6 +566,12 @@ interface SignupFlow {
528
566
  setDateOfBirth: (v: string) => void;
529
567
  phone: Accessor<string>;
530
568
  setPhone: (v: string) => void;
569
+ /**
570
+ * Optional opt-in to text messages. `smsConsent.offer()` is null unless the
571
+ * tenant texts customers; render the checkbox only when it isn't. Never
572
+ * required — leaving it unticked sends nothing and signup proceeds.
573
+ */
574
+ smsConsent: SmsConsent;
531
575
  street: Accessor<string>;
532
576
  setStreet: (v: string) => void;
533
577
  city: Accessor<string>;
@@ -594,6 +638,12 @@ interface RegisterFlow {
594
638
  setDateOfBirth: (v: string) => void;
595
639
  phone: Accessor<string>;
596
640
  setPhone: (v: string) => void;
641
+ /**
642
+ * Optional opt-in to text messages. `smsConsent.offer()` is null unless the
643
+ * tenant texts customers; render the checkbox only when it isn't. Never
644
+ * required — leaving it unticked sends nothing and registration proceeds.
645
+ */
646
+ smsConsent: SmsConsent;
597
647
  street: Accessor<string>;
598
648
  setStreet: (v: string) => void;
599
649
  city: Accessor<string>;
@@ -1682,6 +1732,14 @@ interface SubscriptionIntakeFlow {
1682
1732
  setDateOfBirth: (v: string) => void;
1683
1733
  phone: Accessor<string>;
1684
1734
  setPhone: (v: string) => void;
1735
+ /**
1736
+ * Optional opt-in to text messages. `smsConsent.offer()` is null unless the
1737
+ * tenant texts customers; render the checkbox only when it isn't. Never
1738
+ * required — leaving it unticked sends nothing and the purchase proceeds. A
1739
+ * guest's grant rides the register-and-subscribe call; a signed-in member's
1740
+ * rides the profile PATCH the intake already makes.
1741
+ */
1742
+ smsConsent: SmsConsent;
1685
1743
  address: AddressPair;
1686
1744
  /** Per-item deliverability for `medication.productId` in the address's
1687
1745
  * shipping state — a catalog item routed to a pharmacy that doesn't serve
@@ -2742,4 +2800,57 @@ declare function restoreCartFromLink(): Promise<ResumedCart | null>;
2742
2800
  */
2743
2801
  declare function startCartCapture(opts?: CartCaptureOptions): () => void;
2744
2802
 
2745
- export { type AccountSource, type AddPharmacy, type AddPharmacyFailure, type AddPharmacyNotice, type AddPharmacyState, type AddStrengthInput, type AddStrengthOutcome, type AddedPharmacy, type AddressErrors, type AddressPair, type AddressValue, type AffiliateConversionsFlow, type AffiliateDownlineFlow, type AffiliateLinksFlow, type AffiliateStatsFlow, type AnswerValue, type ApexBlockCode, type AttentionAction, type AttentionActionKind, type AttentionItem, type CartCaptureOptions, type CartCheckoutFlow, type CartCheckoutOutcome, type CartCheckoutPricing, type CartDropReason, type CartReconcileState, type CartReconciliation, type CartSource, type CatalogAvailabilityDecision, type CatalogAvailabilityState, type CatalogConversion, type CatalogFailure, type CatalogFlow, CatalogProduct, type CategoryColorOpts, type CheckoutFlow, type CheckoutOutcome, type Conversation, type ConversionConverted, type ConversionFailure, type ConversionNotice, type ConversionState, type ConversionSummary, type CreateCatalogProductOutcome, DEFAULT_COLOR_PALETTE, type DashboardActivityItem, type DashboardData, type DashboardRxListItem, type DashboardRxStatus, type DashboardSubscription, type DroppedCartLine, type DrugResult, type FindingCopy, type FlatStep, type FulfillmentRow, type FulfillmentStage, type FunnelTelemetry, type JourneyState, type JourneyStep, type JourneyStepKey, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, MATCH_DEPENDENT_WARNINGS, MATCH_HOW_LABEL, type MatchChoice, type MatchProblem, type MatchRecord, type MatchRow, type MatrixView, type MedicationPricing, type MedicationSelectFlow, type MemberPortalData, type MemberPortalRx, type MemberPortalSubscription, type MessagesChannel, type MessagesIntent, type MessagesThread, type NewCatalogProductInput, OFFER_BEATS_PROMO_NOTICE, ORPHAN_REASON, type OfferDiscount, type PricingBreakdown, type ProductCatalogEditor, type ProductDetailFlow, type PromoPricing, READINESS_LABEL, type ReadinessStatus, type ReconcileOptions, type RefillEvent, type RefillView, type RegisterFlow, type RegisterOutcome, type RequestStatus, type ResolvedStrength, type RxRequestStatus, SOURCE_FIELD_NOTE, type Severity, type ShipmentInfo, type SignupFlow, type SignupOutcome, type StageState, type StoredDosePrice, type StrengthComparison, type StrengthRow, type StructureState, type SubscribeFlow, type SubscribeOutcome, type SubscriptionIntakeFlow, type SubscriptionIntakeOutcome, type SurveyFlow, type SurveyOption, type SurveyOutcome, type SurveyQuestion, type SurveyResult, TERMINAL_SUBSCRIPTION_STATUSES, type ThreadMessage, type TimelineEvent, type TimelineKind, type Tone, type TrackerRequest, type TrackerRequestStatus, type TrackerSubscription, type TrackerSubscriptionStatus, type TrackerView, type TrackingUrlCarrier, US_STATES, US_STATE_OPTIONS, type UpdatePaymentMethodFlow, type UseAddPharmacyOptions, type UseAddressPairOptions, type UseCatalogConversionOptions, type UseCheckoutFlowOptions, type UseMedicationSelectOptions, type UseMessagesThreadOptions, type UseProductCatalogEditorOptions, type UseSignupFlowOptions, type UseSubscribeFlowOptions, type UseSubscriptionIntakeFlowOptions, type UseSurveyFlowOptions, type ValidateAddressOptions, type ValidatedResumedPromo, type VisibilityCondition, accountSource, addCatalogItemAsProduct, applyPriceDrafts, availableStateOptions, availableStates, bestOfferDiscount, buildFulfillmentRows, buildMatrixView, buildRefillView, buildSaveBody, buildStrengthRows, buildTimeline, buildTrackerView, buildTrackingUrl, canLeaveUnmatched, canOfferConversion, captureFunnelEmail, catalogUnavailableMessage, categoryColor, classifyAddPharmacyError, classifyCatalogError, classifyConversionError, compareStrengths, createCatalogProduct, createFunnelTelemetry, deriveAttention, deriveCatalogAvailabilityDecision, deriveJourney, describeConversion, emailGateAnswered, explainFinding, findStoredDosePrice, flaggedSubscribers, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, groupDrugsByPharmacy, hasBlockers, hasConversion, hasErrors, initialMatches, isCatalogItemId, isCssColorValue, isLive, isQuestionVisible, isReconcilable, lifecycleReason, liveDoses, lowestPrice, lowestSalePrice, markEmailGateAnswered, matchProblem, matchesComplete, missingPrices, moveInOrder, needsReview, normalizeState, normalizeStates, offerBeatsPromo, offerDurationText, offerSummaryText, parseMoney, pharmacyIsOnProduct, pharmacyLabel, primarySubscription, readinessStatus, reconcileCartAgainstCatalog, reconcileCartLines, redeemResumeLink, removeStoredDosePrice, resetResumeRedemption, resolveCategoryColor, resolveStrengthPrices, restoreCartFromLink, salePriceForBase, skuBindingModeFor, sourceKey, sourceLabel, startCartCapture, stateAvailabilityNote, strengthsChanged, toChoices, toTrackerRequest, upsertDosePrice, useAddPharmacy, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCartReconcile, useCatalog, useCatalogAvailability, useCatalogConversion, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductCatalogEditor, useProductDetail, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSubscriptionIntakeFlow, useSurveyFlow, useUpdatePaymentMethodFlow, validateAddress, validateResumedPromo, visibleWarnings };
2803
+ declare const PHONE_ERROR = "Enter a valid 10-digit US phone number.";
2804
+ declare function isValidUsPhone(raw: string): boolean;
2805
+ /**
2806
+ * "(512) 555-1234" for a US number (E.164 or as typed); anything else comes
2807
+ * back untouched. Display only — never send the result anywhere.
2808
+ */
2809
+ declare function formatUsPhone(raw: string): string;
2810
+
2811
+ type SmsNoticeKind = 'needs_consent' | 'stale_text' | 'no_phone' | 'unavailable';
2812
+ /** Something the member should be told that isn't an error: what just happened to their consent. */
2813
+ interface SmsNotice {
2814
+ kind: SmsNoticeKind;
2815
+ message: string;
2816
+ }
2817
+ interface SmsPreferencesFlow {
2818
+ /** True until the first load settles. */
2819
+ loading: Accessor<boolean>;
2820
+ /** The member's state, or null before it loads or when it could not be loaded. */
2821
+ state: Accessor<UserSmsState | null>;
2822
+ /** Render the section only when this is true — the tenant texts customers and the state loaded. */
2823
+ available: Accessor<boolean>;
2824
+ /** The member's number (E.164), or null when none is on file. */
2825
+ phone: Accessor<string | null>;
2826
+ consented: Accessor<boolean>;
2827
+ /** The member replied STOP. A carrier-level block: the site can't lift it, only explain it. */
2828
+ optedOutByStop: Accessor<boolean>;
2829
+ /** The number texts come from — what a STOP-ed member texts START to. */
2830
+ fromNumber: Accessor<string | undefined>;
2831
+ /** The events the tenant switched on, with this member's setting for each. */
2832
+ events: Accessor<UserSmsEvent[]>;
2833
+ /** Per-event switches apply only while the member is consented and hasn't STOP-ed. */
2834
+ showEvents: Accessor<boolean>;
2835
+ /**
2836
+ * The consent wording to show beside the "turn on" switch, or null when the
2837
+ * tenant's config is unavailable (then turning on is not offered at all).
2838
+ * Replaced with the new words after a stale-text refusal.
2839
+ */
2840
+ consentOffer: Accessor<SmsConsentOffer | null>;
2841
+ /** An action is in flight. */
2842
+ busy: Accessor<boolean>;
2843
+ error: Accessor<string | null>;
2844
+ notice: Accessor<SmsNotice | null>;
2845
+ reload: () => Promise<void>;
2846
+ /** Change the number. Ends consent for the old one, so the member is told to turn texts on again. */
2847
+ setPhone: (raw: string) => Promise<boolean>;
2848
+ /** Turn texts on, agreeing to `consentOffer()` as shown. */
2849
+ optIn: () => Promise<boolean>;
2850
+ optOut: () => Promise<boolean>;
2851
+ /** Switch ONE event; every other event is left exactly as it is. */
2852
+ setEvent: (key: string, enabled: boolean) => Promise<boolean>;
2853
+ }
2854
+ declare function useSmsPreferences(): SmsPreferencesFlow;
2855
+
2856
+ export { type AccountSource, type AddPharmacy, type AddPharmacyFailure, type AddPharmacyNotice, type AddPharmacyState, type AddStrengthInput, type AddStrengthOutcome, type AddedPharmacy, type AddressErrors, type AddressPair, type AddressValue, type AffiliateConversionsFlow, type AffiliateDownlineFlow, type AffiliateLinksFlow, type AffiliateStatsFlow, type AnswerValue, type ApexBlockCode, type AttentionAction, type AttentionActionKind, type AttentionItem, type CartCaptureOptions, type CartCheckoutFlow, type CartCheckoutOutcome, type CartCheckoutPricing, type CartDropReason, type CartReconcileState, type CartReconciliation, type CartSource, type CatalogAvailabilityDecision, type CatalogAvailabilityState, type CatalogConversion, type CatalogFailure, type CatalogFlow, CatalogProduct, type CategoryColorOpts, type CheckoutFlow, type CheckoutOutcome, type Conversation, type ConversionConverted, type ConversionFailure, type ConversionNotice, type ConversionState, type ConversionSummary, type CreateCatalogProductOutcome, DEFAULT_COLOR_PALETTE, type DashboardActivityItem, type DashboardData, type DashboardRxListItem, type DashboardRxStatus, type DashboardSubscription, type DroppedCartLine, type DrugResult, type FindingCopy, type FlatStep, type FulfillmentRow, type FulfillmentStage, type FunnelTelemetry, type JourneyState, type JourneyStep, type JourneyStepKey, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, MATCH_DEPENDENT_WARNINGS, MATCH_HOW_LABEL, type MatchChoice, type MatchProblem, type MatchRecord, type MatchRow, type MatrixView, type MedicationPricing, type MedicationSelectFlow, type MemberPortalData, type MemberPortalRx, type MemberPortalSubscription, type MessagesChannel, type MessagesIntent, type MessagesThread, type NewCatalogProductInput, OFFER_BEATS_PROMO_NOTICE, ORPHAN_REASON, type OfferDiscount, PHONE_ERROR, type PricingBreakdown, type ProductCatalogEditor, type ProductDetailFlow, type PromoPricing, READINESS_LABEL, type ReadinessStatus, type ReconcileOptions, type RefillEvent, type RefillView, type RegisterFlow, type RegisterOutcome, type RequestStatus, type ResolvedStrength, type RxRequestStatus, SOURCE_FIELD_NOTE, type Severity, type ShipmentInfo, type SignupFlow, type SignupOutcome, type SmsConsent, type SmsConsentGrant, type SmsConsentOffer, type SmsNotice, type SmsNoticeKind, type SmsPreferencesFlow, type StageState, type StoredDosePrice, type StrengthComparison, type StrengthRow, type StructureState, type SubscribeFlow, type SubscribeOutcome, type SubscriptionIntakeFlow, type SubscriptionIntakeOutcome, type SurveyFlow, type SurveyOption, type SurveyOutcome, type SurveyQuestion, type SurveyResult, TERMINAL_SUBSCRIPTION_STATUSES, type ThreadMessage, type TimelineEvent, type TimelineKind, type Tone, type TrackerRequest, type TrackerRequestStatus, type TrackerSubscription, type TrackerSubscriptionStatus, type TrackerView, type TrackingUrlCarrier, US_STATES, US_STATE_OPTIONS, type UpdatePaymentMethodFlow, type UseAddPharmacyOptions, type UseAddressPairOptions, type UseCatalogConversionOptions, type UseCheckoutFlowOptions, type UseMedicationSelectOptions, type UseMessagesThreadOptions, type UseProductCatalogEditorOptions, type UseSignupFlowOptions, type UseSubscribeFlowOptions, type UseSubscriptionIntakeFlowOptions, type UseSurveyFlowOptions, type ValidateAddressOptions, type ValidatedResumedPromo, type VisibilityCondition, accountSource, addCatalogItemAsProduct, applyPriceDrafts, availableStateOptions, availableStates, bestOfferDiscount, buildFulfillmentRows, buildMatrixView, buildRefillView, buildSaveBody, buildStrengthRows, buildTimeline, buildTrackerView, buildTrackingUrl, canLeaveUnmatched, canOfferConversion, captureFunnelEmail, catalogUnavailableMessage, categoryColor, classifyAddPharmacyError, classifyCatalogError, classifyConversionError, compareStrengths, createCatalogProduct, createFunnelTelemetry, deriveAttention, deriveCatalogAvailabilityDecision, deriveJourney, describeConversion, emailGateAnswered, explainFinding, findStoredDosePrice, flaggedSubscribers, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, formatUsPhone, groupDrugsByPharmacy, hasBlockers, hasConversion, hasErrors, initialMatches, isCatalogItemId, isCssColorValue, isLive, isQuestionVisible, isReconcilable, isValidUsPhone, lifecycleReason, liveDoses, lowestPrice, lowestSalePrice, markEmailGateAnswered, matchProblem, matchesComplete, missingPrices, moveInOrder, needsReview, normalizeState, normalizeStates, offerBeatsPromo, offerDurationText, offerSummaryText, parseMoney, pharmacyIsOnProduct, pharmacyLabel, primarySubscription, readinessStatus, reconcileCartAgainstCatalog, reconcileCartLines, redeemResumeLink, removeStoredDosePrice, resetResumeRedemption, resolveCategoryColor, resolveStrengthPrices, restoreCartFromLink, salePriceForBase, skuBindingModeFor, sourceKey, sourceLabel, startCartCapture, stateAvailabilityNote, strengthsChanged, toChoices, toTrackerRequest, upsertDosePrice, useAddPharmacy, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCartReconcile, useCatalog, useCatalogAvailability, useCatalogConversion, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductCatalogEditor, useProductDetail, useRegisterFlow, useSignupFlow, useSmsPreferences, useSubscribeFlow, useSubscriptionIntakeFlow, useSurveyFlow, useUpdatePaymentMethodFlow, validateAddress, validateResumedPromo, visibleWarnings };
@@ -1,9 +1,9 @@
1
- export { OFFER_BEATS_PROMO_NOTICE, restoreCartFromLink, startCartCapture, useSubscriptionIntakeFlow, validateResumedPromo } from '../chunk/AXCXMZKP.js';
2
- import '../chunk/6D2HEGRD.js';
3
- export { DEFAULT_COLOR_PALETTE, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, MATCH_DEPENDENT_WARNINGS, MATCH_HOW_LABEL, ORPHAN_REASON, READINESS_LABEL, SOURCE_FIELD_NOTE, TERMINAL_SUBSCRIPTION_STATUSES, US_STATES, US_STATE_OPTIONS, accountSource, addCatalogItemAsProduct, applyPriceDrafts, availableStateOptions, availableStates, bestOfferDiscount, buildFulfillmentRows, buildMatrixView, buildRefillView, buildSaveBody, buildStrengthRows, buildTimeline, buildTrackerView, buildTrackingUrl, canLeaveUnmatched, canOfferConversion, captureFunnelEmail, catalogUnavailableMessage, categoryColor, classifyAddPharmacyError, classifyCatalogError, classifyConversionError, compareStrengths, createCatalogProduct, createFunnelTelemetry, deriveAttention, deriveCatalogAvailabilityDecision, deriveJourney, describeConversion, emailGateAnswered, explainFinding, findStoredDosePrice, flaggedSubscribers, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, groupDrugsByPharmacy, hasBlockers, hasConversion, hasErrors, initialMatches, isCatalogItemId, isCssColorValue, isLive, isQuestionVisible, isReconcilable, lifecycleReason, liveDoses, lowestPrice, lowestSalePrice, markEmailGateAnswered, matchProblem, matchesComplete, missingPrices, moveInOrder, needsReview, normalizeState, normalizeStates, offerBeatsPromo, offerDurationText, offerSummaryText, parseMoney, pharmacyIsOnProduct, pharmacyLabel, primarySubscription, readinessStatus, reconcileCartAgainstCatalog, reconcileCartLines, redeemResumeLink, removeStoredDosePrice, resetResumeRedemption, resolveCategoryColor, resolveStrengthPrices, salePriceForBase, skuBindingModeFor, sourceKey, sourceLabel, stateAvailabilityNote, strengthsChanged, toChoices, toTrackerRequest, upsertDosePrice, useAddPharmacy, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCartReconcile, useCatalog, useCatalogAvailability, useCatalogConversion, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductCatalogEditor, useProductDetail, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress, visibleWarnings } from '../chunk/PJVEDHQN.js';
4
- import '../chunk/HWUNDWNY.js';
5
- import '../chunk/C4V7G2WO.js';
6
- import '../chunk/IJR3CERD.js';
1
+ export { OFFER_BEATS_PROMO_NOTICE, restoreCartFromLink, startCartCapture, useSubscriptionIntakeFlow, validateResumedPromo } from '../chunk/22EFLJGO.js';
2
+ import '../chunk/UM5K75Y4.js';
3
+ export { DEFAULT_COLOR_PALETTE, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, MATCH_DEPENDENT_WARNINGS, MATCH_HOW_LABEL, ORPHAN_REASON, PHONE_ERROR, READINESS_LABEL, SOURCE_FIELD_NOTE, TERMINAL_SUBSCRIPTION_STATUSES, US_STATES, US_STATE_OPTIONS, accountSource, addCatalogItemAsProduct, applyPriceDrafts, availableStateOptions, availableStates, bestOfferDiscount, buildFulfillmentRows, buildMatrixView, buildRefillView, buildSaveBody, buildStrengthRows, buildTimeline, buildTrackerView, buildTrackingUrl, canLeaveUnmatched, canOfferConversion, captureFunnelEmail, catalogUnavailableMessage, categoryColor, classifyAddPharmacyError, classifyCatalogError, classifyConversionError, compareStrengths, createCatalogProduct, createFunnelTelemetry, deriveAttention, deriveCatalogAvailabilityDecision, deriveJourney, describeConversion, emailGateAnswered, explainFinding, findStoredDosePrice, flaggedSubscribers, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, formatUsPhone, groupDrugsByPharmacy, hasBlockers, hasConversion, hasErrors, initialMatches, isCatalogItemId, isCssColorValue, isLive, isQuestionVisible, isReconcilable, isValidUsPhone, lifecycleReason, liveDoses, lowestPrice, lowestSalePrice, markEmailGateAnswered, matchProblem, matchesComplete, missingPrices, moveInOrder, needsReview, normalizeState, normalizeStates, offerBeatsPromo, offerDurationText, offerSummaryText, parseMoney, pharmacyIsOnProduct, pharmacyLabel, primarySubscription, readinessStatus, reconcileCartAgainstCatalog, reconcileCartLines, redeemResumeLink, removeStoredDosePrice, resetResumeRedemption, resolveCategoryColor, resolveStrengthPrices, salePriceForBase, skuBindingModeFor, sourceKey, sourceLabel, stateAvailabilityNote, strengthsChanged, toChoices, toTrackerRequest, upsertDosePrice, useAddPharmacy, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCartReconcile, useCatalog, useCatalogAvailability, useCatalogConversion, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductCatalogEditor, useProductDetail, useRegisterFlow, useSignupFlow, useSmsPreferences, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress, visibleWarnings } from '../chunk/XPYBZU45.js';
4
+ import '../chunk/CED3IYWX.js';
5
+ import '../chunk/BPF2SSKF.js';
6
+ import '../chunk/GYAT2X65.js';
7
7
  import '../chunk/2IFPDU4D.js';
8
8
  //# sourceMappingURL=index.js.map
9
9
  //# sourceMappingURL=index.js.map
@@ -4,8 +4,8 @@ import {
4
4
  startCartCapture,
5
5
  useSubscriptionIntakeFlow,
6
6
  validateResumedPromo
7
- } from "../chunk/QMMIJ5T5.jsx";
8
- import "../chunk/HECRSRX5.jsx";
7
+ } from "../chunk/I7L5WVA2.jsx";
8
+ import "../chunk/GULO22W6.jsx";
9
9
  import {
10
10
  DEFAULT_COLOR_PALETTE,
11
11
  LIFECYCLE_BUCKETS,
@@ -15,6 +15,7 @@ import {
15
15
  MATCH_DEPENDENT_WARNINGS,
16
16
  MATCH_HOW_LABEL,
17
17
  ORPHAN_REASON,
18
+ PHONE_ERROR,
18
19
  READINESS_LABEL,
19
20
  SOURCE_FIELD_NOTE,
20
21
  TERMINAL_SUBSCRIPTION_STATUSES,
@@ -61,6 +62,7 @@ import {
61
62
  formatMessageTime,
62
63
  formatRelativeTime,
63
64
  formatStageDate,
65
+ formatUsPhone,
64
66
  groupDrugsByPharmacy,
65
67
  hasBlockers,
66
68
  hasConversion,
@@ -71,6 +73,7 @@ import {
71
73
  isLive,
72
74
  isQuestionVisible,
73
75
  isReconcilable,
76
+ isValidUsPhone,
74
77
  lifecycleReason,
75
78
  liveDoses,
76
79
  lowestPrice,
@@ -127,16 +130,17 @@ import {
127
130
  useProductDetail,
128
131
  useRegisterFlow,
129
132
  useSignupFlow,
133
+ useSmsPreferences,
130
134
  useSubscribeFlow,
131
135
  useSurveyFlow,
132
136
  useSurveyV2Flow,
133
137
  useUpdatePaymentMethodFlow,
134
138
  validateAddress,
135
139
  visibleWarnings
136
- } from "../chunk/23TRH45I.jsx";
137
- import "../chunk/P6RRDH3K.jsx";
138
- import "../chunk/QN3GGUYU.jsx";
139
- import "../chunk/WSP34CNN.jsx";
140
+ } from "../chunk/FL3DS5WN.jsx";
141
+ import "../chunk/2Q4GK4WD.jsx";
142
+ import "../chunk/W5QWCMTE.jsx";
143
+ import "../chunk/PWEK34Q4.jsx";
140
144
  import "../chunk/QVZ7BRNO.jsx";
141
145
  export {
142
146
  DEFAULT_COLOR_PALETTE,
@@ -148,6 +152,7 @@ export {
148
152
  MATCH_HOW_LABEL,
149
153
  OFFER_BEATS_PROMO_NOTICE,
150
154
  ORPHAN_REASON,
155
+ PHONE_ERROR,
151
156
  READINESS_LABEL,
152
157
  SOURCE_FIELD_NOTE,
153
158
  TERMINAL_SUBSCRIPTION_STATUSES,
@@ -194,6 +199,7 @@ export {
194
199
  formatMessageTime,
195
200
  formatRelativeTime,
196
201
  formatStageDate,
202
+ formatUsPhone,
197
203
  groupDrugsByPharmacy,
198
204
  hasBlockers,
199
205
  hasConversion,
@@ -204,6 +210,7 @@ export {
204
210
  isLive,
205
211
  isQuestionVisible,
206
212
  isReconcilable,
213
+ isValidUsPhone,
207
214
  lifecycleReason,
208
215
  liveDoses,
209
216
  lowestPrice,
@@ -262,6 +269,7 @@ export {
262
269
  useProductDetail,
263
270
  useRegisterFlow,
264
271
  useSignupFlow,
272
+ useSmsPreferences,
265
273
  useSubscribeFlow,
266
274
  useSubscriptionIntakeFlow,
267
275
  useSurveyFlow,