@apextelemed/partner-core 0.17.0-dev.47 → 0.17.0-dev.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +3 -3
- package/dist/api/index.jsx +5 -3
- package/dist/chunk/{GYEK4TSP.js → 2CHHHNFT.js} +3 -3
- package/dist/chunk/{GYEK4TSP.js.map → 2CHHHNFT.js.map} +1 -1
- package/dist/chunk/{MH43RC7G.jsx → 3CWWN7H2.jsx} +25 -2
- package/dist/chunk/{4YJF3J74.jsx → 6QI7MVTN.jsx} +2 -2
- package/dist/chunk/{XNP3VLLY.js → BVJPX54P.js} +2093 -1462
- package/dist/chunk/BVJPX54P.js.map +1 -0
- package/dist/chunk/{IPDABIXO.js → EGP7AQDM.js} +6 -6
- package/dist/chunk/{IPDABIXO.js.map → EGP7AQDM.js.map} +1 -1
- package/dist/chunk/{VLVSEATQ.jsx → GVXPPYZZ.jsx} +355 -5
- package/dist/chunk/{ATSYHZSR.js → H7RY2N5U.js} +3 -3
- package/dist/chunk/{ATSYHZSR.js.map → H7RY2N5U.js.map} +1 -1
- package/dist/chunk/{A43EPOTF.jsx → HADRZNID.jsx} +5 -5
- package/dist/chunk/{U426ASG4.js → ISC5GVA2.js} +26 -4
- package/dist/chunk/ISC5GVA2.js.map +1 -0
- package/dist/chunk/{B5722F4T.js → KADMJCZL.js} +3 -3
- package/dist/chunk/{B5722F4T.js.map → KADMJCZL.js.map} +1 -1
- package/dist/chunk/{XEWZ4OIT.jsx → OVRA6JBK.jsx} +2 -2
- package/dist/chunk/{YK2Y76A4.js → R5WTYT2O.js} +341 -6
- package/dist/chunk/R5WTYT2O.js.map +1 -0
- package/dist/chunk/{3XQSYLFD.jsx → XV5WXVPT.jsx} +1992 -1632
- package/dist/chunk/{IXT445LX.jsx → YQK6OTY6.jsx} +2 -2
- package/dist/{client-DoCsuJj3.d.ts → client-Da9ye3z4.d.ts} +97 -2
- package/dist/flows/index.d.ts +190 -2
- package/dist/flows/index.js +6 -6
- package/dist/flows/index.jsx +30 -8
- package/dist/index/index.d.ts +2 -2
- package/dist/index/index.js +7 -7
- package/dist/index/index.jsx +33 -9
- package/dist/pages/index.d.ts +1 -1
- package/dist/pages/index.js +5 -5
- package/dist/pages/index.jsx +5 -5
- package/dist/stores/index.d.ts +1 -1
- package/dist/stores/index.js +2 -2
- package/dist/stores/index.jsx +2 -2
- package/package.json +1 -1
- package/dist/chunk/U426ASG4.js.map +0 -1
- package/dist/chunk/XNP3VLLY.js.map +0 -1
- package/dist/chunk/YK2Y76A4.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
captureAuthHeader,
|
|
3
3
|
peekFunnelSessionId
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./6QI7MVTN.jsx";
|
|
5
5
|
import {
|
|
6
6
|
getConfig
|
|
7
7
|
} from "./QVZ7BRNO.jsx";
|
|
@@ -174,4 +174,4 @@ export {
|
|
|
174
174
|
readCartToken,
|
|
175
175
|
stripCartToken
|
|
176
176
|
};
|
|
177
|
-
//# sourceMappingURL=
|
|
177
|
+
//# sourceMappingURL=YQK6OTY6.jsx.map
|
|
@@ -523,11 +523,15 @@ declare class ApiError extends Error {
|
|
|
523
523
|
/** Machine-readable error code from the response body, when the endpoint
|
|
524
524
|
* sends one (e.g. `SUBSCRIPTION_EXISTS`). Branch on this, never on message. */
|
|
525
525
|
readonly code?: string;
|
|
526
|
+
/** The response body's `details`, untouched, for the few refusals whose
|
|
527
|
+
* specifics a caller acts on (e.g. which prices are missing). Never shown as prose. */
|
|
528
|
+
readonly details?: unknown;
|
|
526
529
|
constructor(message: string, opts?: {
|
|
527
530
|
status?: number;
|
|
528
531
|
ambiguous?: boolean;
|
|
529
532
|
cause?: unknown;
|
|
530
533
|
code?: string;
|
|
534
|
+
details?: unknown;
|
|
531
535
|
});
|
|
532
536
|
}
|
|
533
537
|
/**
|
|
@@ -1252,9 +1256,25 @@ interface AdminProduct {
|
|
|
1252
1256
|
orphanedDosePrices?: AdminOrphanedDosePrice[];
|
|
1253
1257
|
/** Something the product offers cannot be sold for want of a price. */
|
|
1254
1258
|
needsPrice?: boolean;
|
|
1259
|
+
/** The product is prescribed (filled by a pharmacy). Absent on an older backend. */
|
|
1260
|
+
prescribed?: boolean;
|
|
1261
|
+
/** The pharmacies that fill the product, ranked (1 = first). A product that
|
|
1262
|
+
* is not yet on several pharmacies has exactly one entry with a null
|
|
1263
|
+
* `fulfillmentId`. `null` = unknown (the prescribing platform couldn't be
|
|
1264
|
+
* asked) or the product isn't prescribed. */
|
|
1265
|
+
pharmacies?: AdminProductPharmacy[] | null;
|
|
1266
|
+
}
|
|
1267
|
+
interface AdminProductPharmacy {
|
|
1268
|
+
fulfillmentId: string | null;
|
|
1269
|
+
pharmacyId: string | null;
|
|
1270
|
+
pharmacyName: string | null;
|
|
1271
|
+
drugId: string;
|
|
1272
|
+
drugName: string | null;
|
|
1273
|
+
rank: number;
|
|
1274
|
+
enabled: boolean;
|
|
1255
1275
|
}
|
|
1256
1276
|
/** Read-only fields the backend derives from Apex; never sent on a write. */
|
|
1257
|
-
type AdminProductOverlayField = 'catalogOverlay' | 'apexItemStatus' | 'strengths' | 'orphanedDosePrices' | 'needsPrice';
|
|
1277
|
+
type AdminProductOverlayField = 'prescribed' | 'pharmacies' | 'catalogOverlay' | 'apexItemStatus' | 'strengths' | 'orphanedDosePrices' | 'needsPrice';
|
|
1258
1278
|
type AdminApexItemStatus = 'ok' | 'missing' | 'unavailable' | 'none';
|
|
1259
1279
|
interface AdminProductStrength {
|
|
1260
1280
|
dosage: string;
|
|
@@ -1970,6 +1990,81 @@ declare const adminCatalogConversionApi: {
|
|
|
1970
1990
|
/** Puts a converted product back as it was. Does not undo everything — read `notUndone`. */
|
|
1971
1991
|
undo(productId: string, options?: CatalogConversionUndoOptions): Promise<CatalogConversionUndoResult>;
|
|
1972
1992
|
};
|
|
1993
|
+
interface AddPharmacyFinding {
|
|
1994
|
+
code: string;
|
|
1995
|
+
check: string;
|
|
1996
|
+
message: string;
|
|
1997
|
+
rowCount: number;
|
|
1998
|
+
rows: unknown[];
|
|
1999
|
+
truncated: boolean;
|
|
2000
|
+
/** `ops` findings are for operators; the admin UI never shows them. */
|
|
2001
|
+
audience: 'admin' | 'ops';
|
|
2002
|
+
}
|
|
2003
|
+
interface AddPharmacyStrengthBefore {
|
|
2004
|
+
dosage: string;
|
|
2005
|
+
price: number | null;
|
|
2006
|
+
}
|
|
2007
|
+
interface AddPharmacyStrengthAfter {
|
|
2008
|
+
doseId: string | null;
|
|
2009
|
+
dosage: string;
|
|
2010
|
+
price: number | null;
|
|
2011
|
+
priceSource: 'dose' | 'base' | 'added' | null;
|
|
2012
|
+
needsPrice: boolean;
|
|
2013
|
+
}
|
|
2014
|
+
interface AddPharmacyPlan {
|
|
2015
|
+
productId: string;
|
|
2016
|
+
/** `convert`: this save also moves a single-pharmacy product onto a multi-pharmacy
|
|
2017
|
+
* item. The admin is never told; it only decides how long the save takes. */
|
|
2018
|
+
kind: 'add' | 'convert';
|
|
2019
|
+
pharmacy: {
|
|
2020
|
+
drugId: string;
|
|
2021
|
+
drugName: string;
|
|
2022
|
+
pharmacyId: string | null;
|
|
2023
|
+
pharmacyName: string | null;
|
|
2024
|
+
};
|
|
2025
|
+
/** The save can go ahead (once `pricesRequired` are supplied). */
|
|
2026
|
+
ready: boolean;
|
|
2027
|
+
blockers: AddPharmacyFinding[];
|
|
2028
|
+
warnings: AddPharmacyFinding[];
|
|
2029
|
+
strengthsBefore: AddPharmacyStrengthBefore[];
|
|
2030
|
+
strengthsAfter: AddPharmacyStrengthAfter[];
|
|
2031
|
+
/** The admin must enter a price for each. */
|
|
2032
|
+
pricesRequired: Array<{
|
|
2033
|
+
doseId: string;
|
|
2034
|
+
dosage: string;
|
|
2035
|
+
suggestedPrice: number | null;
|
|
2036
|
+
}>;
|
|
2037
|
+
/** Applied automatically; informational. */
|
|
2038
|
+
autoPrices: Array<{
|
|
2039
|
+
doseId: string;
|
|
2040
|
+
price: number;
|
|
2041
|
+
savingsPrice: number | null;
|
|
2042
|
+
}>;
|
|
2043
|
+
/** Sent back with the save. Null on `kind: 'add'`. */
|
|
2044
|
+
planHash: string | null;
|
|
2045
|
+
}
|
|
2046
|
+
interface AddPharmacyPrice {
|
|
2047
|
+
doseId: string;
|
|
2048
|
+
price: number;
|
|
2049
|
+
savingsPrice?: number;
|
|
2050
|
+
}
|
|
2051
|
+
interface AddPharmacyBody {
|
|
2052
|
+
drugId: string;
|
|
2053
|
+
planHash?: string;
|
|
2054
|
+
prices?: AddPharmacyPrice[];
|
|
2055
|
+
}
|
|
2056
|
+
interface AddPharmacyResult {
|
|
2057
|
+
status: 'added' | 'converted';
|
|
2058
|
+
productId: string;
|
|
2059
|
+
fulfillmentId: string | null;
|
|
2060
|
+
message: string;
|
|
2061
|
+
}
|
|
2062
|
+
declare const adminProductPharmaciesApi: {
|
|
2063
|
+
/** What adding this pharmacy drug would do. Read-only for the admin; safe to repeat. */
|
|
2064
|
+
plan(productId: string, drugId: string): Promise<AddPharmacyPlan>;
|
|
2065
|
+
/** Adds it. Up to ~40 seconds on a single-pharmacy product; never retry blindly — re-read the product first. */
|
|
2066
|
+
add(productId: string, body: AddPharmacyBody): Promise<AddPharmacyResult>;
|
|
2067
|
+
};
|
|
1973
2068
|
declare const adminApi: {
|
|
1974
2069
|
getDashboard(): Promise<AdminDashboardStats>;
|
|
1975
2070
|
getRecurringRevenue(): Promise<AdminRecurringRevenue>;
|
|
@@ -2756,4 +2851,4 @@ declare const affiliatePortalApi: {
|
|
|
2756
2851
|
track(refCode: string, landingPage?: string): Promise<AffiliateTrackResponse>;
|
|
2757
2852
|
};
|
|
2758
2853
|
|
|
2759
|
-
export { type
|
|
2854
|
+
export { type AdminSubscriptionPatch as $, type AddPharmacyBody as A, type AdminListParams as B, type AdminOffer as C, type AdminOfferBase as D, type AdminOfferGrant as E, type AdminOfferGrantBase as F, type AdminOfferInput as G, type AdminOrderSummary as H, type AdminOrphanReason as I, type AdminOrphanedDosePrice as J, type AdminPayment as K, type AdminPaymentDetail as L, type AdminProduct as M, type AdminProductOverlayField as N, type AdminProductPharmacy as O, type AdminProductStrength as P, type AdminPromoCode as Q, type AdminPromoCodeInput as R, type AdminRecurringPricePoint as S, type AdminRecurringRevenue as T, type AdminRefundResult as U, type AdminSale as V, type AdminSaleInput as W, type AdminScheduledRefund as X, type AdminScheduledRefundProblem as Y, type AdminSubscription as Z, type AdminSubscriptionDetail as _, type AddPharmacyFinding as a, type CommissionConfig as a$, type AdminSubscriptionWriteResult as a0, type AdminSupportCustomer as a1, type AdminSupportStats as a2, type AdminSupportThread as a3, type AdminWebhookEvent as a4, type Affiliate as a5, type AffiliateAuthTokens as a6, type AffiliateClickRecord as a7, type AffiliateConversion as a8, type AffiliateDashboardLinks as a9, type CatalogConversionPointers as aA, type CatalogConversionPrepareResult as aB, type CatalogConversionPreview as aC, type CatalogConversionRun as aD, type CatalogConversionSource as aE, type CatalogConversionStage as aF, type CatalogConversionTarget as aG, type CatalogConversionUndoOptions as aH, type CatalogConversionUndoResult as aI, type CatalogDose as aJ, type CatalogDoseInput as aK, type CatalogDoseModel as aL, type CatalogDoseSuggestion as aM, type CatalogDoseSuggestions as aN, type CatalogEquivalentSuggestions as aO, type CatalogFulfillment as aP, type CatalogFulfillmentInput as aQ, type CatalogItem as aR, type CatalogItemInput as aS, type CatalogMappableDrug as aT, type CatalogMatrixCell as aU, type CatalogProduct as aV, type CatalogReadiness as aW, type CategoryMetadata as aX, type CheckoutAddress as aY, type CheckoutPayload as aZ, type CheckoutResult as a_, type AffiliateDashboardProfile as aa, type AffiliateDashboardStats as ab, type AffiliateDownlineMember as ac, type AffiliateEarningsBreakdown as ad, type AffiliatePaymentMethod as ae, type AffiliateProgram as af, type AffiliateRegisterInput as ag, type AffiliateRegisterResponse as ah, type AffiliateSession as ai, type AffiliateStatsResponse as aj, type AffiliateStatus as ak, type AffiliateTrackResponse as al, ApiError as am, type ApiResponse as an, type AttributionMethod as ao, type AuthTokens as ap, type BillingReminderSettings as aq, type CatalogAvailabilityItem as ar, type CatalogAvailabilityReason as as, type CatalogAvailabilityResult as at, type CatalogClassification as au, type CatalogConversionChoice as av, type CatalogConversionCommitResult as aw, type CatalogConversionDose as ax, type CatalogConversionDoseMatch as ay, type CatalogConversionFinding as az, type AddPharmacyPlan as b, type UpdatePaymentMethodPayload as b$, type CommissionStatus as b0, type CompleteSurveyPayload as b1, type CreateAffiliatePayload as b2, type CreateAffiliateProgramPayload as b3, type CreateOrderPayload as b4, type CreateRequestPayload as b5, type CreateSubscriptionPayload as b6, type CustomTemplate as b7, type CustomTemplateInput as b8, type CustomerDiscountConfig as b9, type RegisterAndSubscribePayload as bA, type RegisterPayload as bB, type RenewalStatus as bC, SUPPORT_ATTACHMENT_MAX_BYTES as bD, SUPPORT_ATTACHMENT_MIME_TYPES as bE, type SelectDrugPayload as bF, type SendMessagePayload as bG, type SendToPharmacyPayload as bH, type SubscriptionPreview as bI, type SubscriptionPreviewLine as bJ, type SubscriptionPreviewPayload as bK, type SupportAttachment as bL, type SupportChannel as bM, type SupportChannelSettings as bN, type SupportMessage as bO, type SupportRealtimeToken as bP, type SupportThread as bQ, type SupportThreadCategory as bR, type SupportThreadStatus as bS, type SurveySubmitPayload as bT, type TemplatePlaceholdersMap as bU, type TemplateText as bV, type TenantFeature as bW, type TenantFeatureAccess as bX, type TokenTrackName as bY, type UpdateAffiliatePayload as bZ, type UpdateAffiliateProgramPayload as b_, type DeliveryInfo as ba, type DiscountType as bb, type EmailNotificationSettings as bc, type EmailTemplatesMap as bd, type LoginPayload as be, type MemberOffer as bf, type MemberPrescriptionRequest as bg, type MemberSurveyMode as bh, type MemberSurveyResponseSummary as bi, type MemberSurveyTranscript as bj, type MemberSurveyTranscriptItem as bk, type MemberSurveyTranscriptSection as bl, type MembersMeResponse as bm, type OfferGrantState as bn, type Order as bo, type OrderItemInput as bp, type PaginationParams as bq, type PaymentCallbackPayload as br, type PaymentInitiatePayload as bs, type PaymentType as bt, type PendingRenewalSurvey as bu, type Placeholder as bv, type PlaceholderKind as bw, type ProductSaleSummary as bx, type PromoValidationResponse as by, type PublicCategory as bz, type AddPharmacyPrice as c, type UpdateProfilePayload as c0, type User as c1, addressesApi as c2, adminAffiliatesApi as c3, adminApi as c4, adminCatalogApi as c5, adminCatalogConversionApi as c6, adminProductPharmaciesApi as c7, affiliateAuthStorageKey as c8, affiliatePortalApi as c9, apexApi as ca, apiFetch as cb, authApi as cc, authStorageKey as cd, catalogApi as ce, clearAffiliateTokens as cf, clearTokens as cg, getAffiliateTokens as ch, getTokens as ci, membersApi as cj, messagesApi as ck, newIdempotencyKey as cl, offersApi as cm, onTokensCleared as cn, ordersApi as co, paymentsApi as cp, productsApi as cq, promoCodesApi as cr, setAffiliateTokens as cs, setTokens as ct, subscriptionsApi as cu, supportApi as cv, usersApi as cw, type AddPharmacyResult as d, type AddPharmacyStrengthAfter as e, type AddPharmacyStrengthBefore as f, type AddressVerifyResult as g, type AdminApexDrug as h, type AdminApexItemStatus as i, type AdminBillingAttempt as j, type AdminCategory as k, type AdminCategoryInput as l, type AdminCategoryUpdate as m, type AdminCustomer as n, type AdminCustomerFacts as o, type AdminCustomerFunnel as p, type AdminCustomerListParams as q, type AdminCustomerOverview as r, type AdminCustomerProfile as s, type AdminCustomerRequest as t, type AdminCustomerRow as u, type AdminCustomerSupport as v, type AdminCustomerSupportThread as w, type AdminDashboardStats as x, type AdminLifecycle as y, type AdminLifecycleBucket as z };
|
package/dist/flows/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Accessor, Resource } from 'solid-js';
|
|
2
|
-
import {
|
|
2
|
+
import { g as AddressVerifyResult, aY as CheckoutAddress, at as CatalogAvailabilityResult, c1 as User, ba as DeliveryInfo, bC as RenewalStatus, bu as PendingRenewalSurvey, z as AdminLifecycleBucket, r as AdminCustomerOverview, _ as AdminSubscriptionDetail, t as AdminCustomerRequest, bR as SupportThreadCategory, bM as SupportChannel, aV as CatalogProduct, a8 as AffiliateConversion, ac as AffiliateDownlineMember, a9 as AffiliateDashboardLinks, ab as AffiliateDashboardStats, by as PromoValidationResponse, bf as MemberOffer, au as CatalogClassification, aL as CatalogDoseModel, J as AdminOrphanedDosePrice, M as AdminProduct, aR as CatalogItem, aM as CatalogDoseSuggestion, aT as CatalogMappableDrug, aO as CatalogEquivalentSuggestions, aW as CatalogReadiness, aI as CatalogConversionUndoResult, aC as CatalogConversionPreview, ay as CatalogConversionDoseMatch, aE as CatalogConversionSource, ax as CatalogConversionDose, aH as CatalogConversionUndoOptions, aw as CatalogConversionCommitResult, az as CatalogConversionFinding, av as CatalogConversionChoice, b as AddPharmacyPlan, d as AddPharmacyResult, A as AddPharmacyBody, a as AddPharmacyFinding } from '../client-Da9ye3z4.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';
|
|
@@ -2391,6 +2391,194 @@ interface MatchRow {
|
|
|
2391
2391
|
}
|
|
2392
2392
|
declare function useCatalogConversion(opts: UseCatalogConversionOptions): CatalogConversion;
|
|
2393
2393
|
|
|
2394
|
+
/**
|
|
2395
|
+
* "Add pharmacy": the one way an admin gives a prescribed product another
|
|
2396
|
+
* pharmacy, whatever the product is today — the headless flow behind the
|
|
2397
|
+
* product editor's Pharmacies section.
|
|
2398
|
+
*
|
|
2399
|
+
* idle → picking → planning → reviewing → saving → done
|
|
2400
|
+
* ↘ failed ↙ ↖ (plan changed: planning again)
|
|
2401
|
+
*
|
|
2402
|
+
* The server decides what an add takes. On a product that fills at a single
|
|
2403
|
+
* pharmacy it also moves the product onto a multi-pharmacy item, behind the
|
|
2404
|
+
* scenes; the plan says so only as `kind: 'convert'`, and nothing here (or in
|
|
2405
|
+
* the screen) says it to the admin. What the admin sees is the pharmacy, the
|
|
2406
|
+
* strengths and prices before and after, and any decision they owe.
|
|
2407
|
+
*
|
|
2408
|
+
* Rules this flow keeps:
|
|
2409
|
+
*
|
|
2410
|
+
* - The server's plan is the only thing that decides what can be saved. The
|
|
2411
|
+
* save carries the plan's `planHash`; when the plan moved on (`plan_changed`,
|
|
2412
|
+
* `plan_first`) the flow plans again by itself and returns to review with a
|
|
2413
|
+
* notice. Prices typed for a strength that is still owed are kept.
|
|
2414
|
+
* - A save is never retried blindly. After a failure whose outcome is not
|
|
2415
|
+
* known (a dropped connection, a proxy timeout, a 5xx) the product is
|
|
2416
|
+
* re-read: if the pharmacy is on it now the add is done; if not, the admin
|
|
2417
|
+
* is offered a re-check, or to start again from a fresh plan.
|
|
2418
|
+
* - A plan that needs no decision (no blockers, no admin-facing warnings, no
|
|
2419
|
+
* price owed, strengths unchanged) is a single confirm step: `needsReview`.
|
|
2420
|
+
* - `ops` findings are for operators and never reach the screen.
|
|
2421
|
+
*
|
|
2422
|
+
* The decision logic (what to show, what is missing, the save body, error
|
|
2423
|
+
* sorting) is exported as pure functions and tested without a component tree.
|
|
2424
|
+
*/
|
|
2425
|
+
|
|
2426
|
+
/** The warnings an admin should read. `ops` findings are for operators. */
|
|
2427
|
+
declare function visibleWarnings(plan: Pick<AddPharmacyPlan, 'warnings'>): AddPharmacyFinding[];
|
|
2428
|
+
/** A price as typed: a positive amount of at most two decimals. Null = blank or not valid. */
|
|
2429
|
+
declare function parseMoney(raw: string | undefined): number | null;
|
|
2430
|
+
/** The doses the plan asks a price for that have no valid one typed yet. */
|
|
2431
|
+
declare function missingPrices(plan: Pick<AddPharmacyPlan, 'pricesRequired'>, prices: Readonly<Record<string, string>>): string[];
|
|
2432
|
+
/** Whether the strengths a customer can buy differ after the save (by dosage, then price). */
|
|
2433
|
+
declare function strengthsChanged(plan: Pick<AddPharmacyPlan, 'strengthsBefore' | 'strengthsAfter'>): boolean;
|
|
2434
|
+
/**
|
|
2435
|
+
* True when the admin has something to read or decide: a blocker, an
|
|
2436
|
+
* admin-facing warning, a price owed, or strengths that change. False means one
|
|
2437
|
+
* confirm step is enough.
|
|
2438
|
+
*/
|
|
2439
|
+
declare function needsReview(plan: AddPharmacyPlan): boolean;
|
|
2440
|
+
interface StrengthComparison {
|
|
2441
|
+
dosage: string;
|
|
2442
|
+
/** What a customer pays now: a price, `null` for a strength with no price, `undefined` for one not sold yet. */
|
|
2443
|
+
before: number | null | undefined;
|
|
2444
|
+
/** What a customer pays after the save: a price, or `null` when it still needs one. */
|
|
2445
|
+
after: number | null;
|
|
2446
|
+
/** Not sold now, sold after. */
|
|
2447
|
+
isNew: boolean;
|
|
2448
|
+
}
|
|
2449
|
+
/** "Now" against "after saving", one row per strength: today's strengths first, then the new ones. */
|
|
2450
|
+
declare function compareStrengths(plan: Pick<AddPharmacyPlan, 'strengthsBefore' | 'strengthsAfter'>): StrengthComparison[];
|
|
2451
|
+
/** The name the admin knows the pharmacy by. */
|
|
2452
|
+
declare function pharmacyLabel(plan: Pick<AddPharmacyPlan, 'pharmacy'>): string;
|
|
2453
|
+
/**
|
|
2454
|
+
* The save body for a plan: the plan's hash (absent on a plain add) and a price
|
|
2455
|
+
* for every strength the plan asked for, with the optional member price only
|
|
2456
|
+
* when one was typed. `autoPrices` are the server's to apply and are not sent.
|
|
2457
|
+
*/
|
|
2458
|
+
declare function buildSaveBody(plan: AddPharmacyPlan, prices: Readonly<Record<string, string>>, savingsPrices?: Readonly<Record<string, string>>): AddPharmacyBody;
|
|
2459
|
+
/** Whether the product, as the server reports it now, already has the planned pharmacy drug. */
|
|
2460
|
+
declare function pharmacyIsOnProduct(product: Pick<AdminProduct, 'pharmacies'> | null | undefined, plan: Pick<AddPharmacyPlan, 'pharmacy'>): boolean;
|
|
2461
|
+
type AddPharmacyFailure =
|
|
2462
|
+
/** `plan_changed` / `plan_first`: what the admin reviewed is no longer the plan. */
|
|
2463
|
+
{
|
|
2464
|
+
kind: 'replan';
|
|
2465
|
+
message: string;
|
|
2466
|
+
code: string;
|
|
2467
|
+
}
|
|
2468
|
+
/** `prices_required`: `missing` are the dose ids the server says have no price. */
|
|
2469
|
+
| {
|
|
2470
|
+
kind: 'prices_required';
|
|
2471
|
+
message: string;
|
|
2472
|
+
missing: string[];
|
|
2473
|
+
}
|
|
2474
|
+
/** The server said no before doing anything. `retryable`: a fresh plan could get a different answer. */
|
|
2475
|
+
| {
|
|
2476
|
+
kind: 'refused';
|
|
2477
|
+
message: string;
|
|
2478
|
+
status: number;
|
|
2479
|
+
code?: string;
|
|
2480
|
+
retryable: boolean;
|
|
2481
|
+
}
|
|
2482
|
+
/** The request may or may not have landed. `serverFinished`: the backend answered with its own
|
|
2483
|
+
* `code`, so its attempt is over; without one the answer never reached us. */
|
|
2484
|
+
| {
|
|
2485
|
+
kind: 'ambiguous';
|
|
2486
|
+
message: string;
|
|
2487
|
+
serverFinished: boolean;
|
|
2488
|
+
code?: string;
|
|
2489
|
+
};
|
|
2490
|
+
/**
|
|
2491
|
+
* Sort a thrown error into what the flow can do about it. Duck-typed on
|
|
2492
|
+
* `status` / `code` / `ambiguous` / `details` (what `ApiError` carries);
|
|
2493
|
+
* branches on codes and statuses, never on message prose.
|
|
2494
|
+
*/
|
|
2495
|
+
declare function classifyAddPharmacyError(err: unknown): AddPharmacyFailure;
|
|
2496
|
+
interface AddedPharmacy {
|
|
2497
|
+
productId: string;
|
|
2498
|
+
pharmacyName: string;
|
|
2499
|
+
/** `recovered`: the answer was lost, and a re-read of the product showed the pharmacy on it. */
|
|
2500
|
+
origin: 'saved' | 'recovered';
|
|
2501
|
+
/** What the server did; the screen never says which. */
|
|
2502
|
+
status: AddPharmacyResult['status'];
|
|
2503
|
+
}
|
|
2504
|
+
interface AddPharmacyNotice {
|
|
2505
|
+
tone: 'info' | 'warn' | 'danger';
|
|
2506
|
+
code: string;
|
|
2507
|
+
message: string;
|
|
2508
|
+
}
|
|
2509
|
+
type AddPharmacyState = {
|
|
2510
|
+
kind: 'idle';
|
|
2511
|
+
}
|
|
2512
|
+
/** Choosing a pharmacy drug. */
|
|
2513
|
+
| {
|
|
2514
|
+
kind: 'picking';
|
|
2515
|
+
} | {
|
|
2516
|
+
kind: 'planning';
|
|
2517
|
+
drugId: string;
|
|
2518
|
+
} | {
|
|
2519
|
+
kind: 'reviewing';
|
|
2520
|
+
plan: AddPharmacyPlan;
|
|
2521
|
+
}
|
|
2522
|
+
/** The save is running (about 40 seconds on a single-pharmacy product): no way to interrupt it. */
|
|
2523
|
+
| {
|
|
2524
|
+
kind: 'saving';
|
|
2525
|
+
plan: AddPharmacyPlan;
|
|
2526
|
+
} | {
|
|
2527
|
+
kind: 'done';
|
|
2528
|
+
added: AddedPharmacy;
|
|
2529
|
+
} | {
|
|
2530
|
+
kind: 'failed';
|
|
2531
|
+
message: string;
|
|
2532
|
+
drugId: string;
|
|
2533
|
+
plan: AddPharmacyPlan | null;
|
|
2534
|
+
/** The outcome of the save is not known: re-check the product, don't save again. */
|
|
2535
|
+
unconfirmed: boolean;
|
|
2536
|
+
/** A fresh plan could get a different answer. */
|
|
2537
|
+
canRetry: boolean;
|
|
2538
|
+
};
|
|
2539
|
+
interface UseAddPharmacyOptions {
|
|
2540
|
+
/** The product being edited. */
|
|
2541
|
+
productId: Accessor<string>;
|
|
2542
|
+
/** The pharmacy is on the product (the host reloads it and its lists). */
|
|
2543
|
+
onAdded?: (added: AddedPharmacy) => void;
|
|
2544
|
+
}
|
|
2545
|
+
interface AddPharmacy {
|
|
2546
|
+
state: Accessor<AddPharmacyState>;
|
|
2547
|
+
/** True while a request is in flight (planning or saving). */
|
|
2548
|
+
busy: Accessor<boolean>;
|
|
2549
|
+
notice: Accessor<AddPharmacyNotice | null>;
|
|
2550
|
+
dismissNotice: () => void;
|
|
2551
|
+
/** Every pharmacy drug this site may map; the host filters out pharmacies already on the product. */
|
|
2552
|
+
drugs: Accessor<CatalogMappableDrug[]>;
|
|
2553
|
+
drugsStatus: Accessor<'idle' | 'loading' | 'ready' | 'failed'>;
|
|
2554
|
+
selected: Accessor<string>;
|
|
2555
|
+
select: (drugId: string) => void;
|
|
2556
|
+
/** Start choosing, optionally with a drug already chosen (a suggestion). */
|
|
2557
|
+
open: (drugId?: string) => void;
|
|
2558
|
+
cancel: () => void;
|
|
2559
|
+
/** Back to choosing a different pharmacy. */
|
|
2560
|
+
backToPicking: () => void;
|
|
2561
|
+
/** Plan adding the selected drug. */
|
|
2562
|
+
plan: () => Promise<void>;
|
|
2563
|
+
prices: Accessor<Readonly<Record<string, string>>>;
|
|
2564
|
+
savingsPrices: Accessor<Readonly<Record<string, string>>>;
|
|
2565
|
+
setPrice: (doseId: string, value: string) => void;
|
|
2566
|
+
setSavingsPrice: (doseId: string, value: string) => void;
|
|
2567
|
+
/** Doses owed a price that has none yet. */
|
|
2568
|
+
missing: Accessor<string[]>;
|
|
2569
|
+
/** Doses the server said were missing a price when the last save was refused. */
|
|
2570
|
+
flagged: Accessor<ReadonlySet<string>>;
|
|
2571
|
+
/** A member price was typed that is not an amount. */
|
|
2572
|
+
savingsInvalid: Accessor<string[]>;
|
|
2573
|
+
canSave: Accessor<boolean>;
|
|
2574
|
+
save: () => Promise<void>;
|
|
2575
|
+
/** Plan again (after a refusal a new plan can change), or re-check the product when the save's outcome is unknown. */
|
|
2576
|
+
retry: () => Promise<void>;
|
|
2577
|
+
/** Discard what is on screen and plan the same pharmacy again from scratch. */
|
|
2578
|
+
startOver: () => Promise<void>;
|
|
2579
|
+
}
|
|
2580
|
+
declare function useAddPharmacy(opts: UseAddPharmacyOptions): AddPharmacy;
|
|
2581
|
+
|
|
2394
2582
|
/**
|
|
2395
2583
|
* Shared vocabulary for reading a subscription's status.
|
|
2396
2584
|
*
|
|
@@ -2540,4 +2728,4 @@ declare function restoreCartFromLink(): Promise<ResumedCart | null>;
|
|
|
2540
2728
|
*/
|
|
2541
2729
|
declare function startCartCapture(opts?: CartCaptureOptions): () => void;
|
|
2542
2730
|
|
|
2543
|
-
export { type AccountSource, type AddStrengthInput, type AddStrengthOutcome, 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 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 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, buildStrengthRows, buildTimeline, buildTrackerView, buildTrackingUrl, canLeaveUnmatched, canOfferConversion, captureFunnelEmail, catalogUnavailableMessage, categoryColor, classifyCatalogError, classifyConversionError, 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, moveInOrder, normalizeState, normalizeStates, offerBeatsPromo, offerDurationText, offerSummaryText, primarySubscription, readinessStatus, reconcileCartAgainstCatalog, reconcileCartLines, redeemResumeLink, removeStoredDosePrice, resetResumeRedemption, resolveCategoryColor, resolveStrengthPrices, restoreCartFromLink, salePriceForBase, skuBindingModeFor, sourceKey, sourceLabel, startCartCapture, stateAvailabilityNote, toChoices, toTrackerRequest, upsertDosePrice, 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 };
|
|
2731
|
+
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 };
|
package/dist/flows/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { OFFER_BEATS_PROMO_NOTICE, restoreCartFromLink, startCartCapture, useSubscriptionIntakeFlow, validateResumedPromo } from '../chunk/
|
|
2
|
-
import '../chunk/
|
|
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, buildStrengthRows, buildTimeline, buildTrackerView, buildTrackingUrl, canLeaveUnmatched, canOfferConversion, captureFunnelEmail, catalogUnavailableMessage, categoryColor, classifyCatalogError, classifyConversionError, 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, moveInOrder, normalizeState, normalizeStates, offerBeatsPromo, offerDurationText, offerSummaryText, primarySubscription, readinessStatus, reconcileCartAgainstCatalog, reconcileCartLines, redeemResumeLink, removeStoredDosePrice, resetResumeRedemption, resolveCategoryColor, resolveStrengthPrices, salePriceForBase, skuBindingModeFor, sourceKey, sourceLabel, stateAvailabilityNote, toChoices, toTrackerRequest, upsertDosePrice, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCartReconcile, useCatalog, useCatalogAvailability, useCatalogConversion, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductCatalogEditor, useProductDetail, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress } from '../chunk/
|
|
4
|
-
import '../chunk/
|
|
5
|
-
import '../chunk/
|
|
6
|
-
import '../chunk/
|
|
1
|
+
export { OFFER_BEATS_PROMO_NOTICE, restoreCartFromLink, startCartCapture, useSubscriptionIntakeFlow, validateResumedPromo } from '../chunk/EGP7AQDM.js';
|
|
2
|
+
import '../chunk/KADMJCZL.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/R5WTYT2O.js';
|
|
4
|
+
import '../chunk/2CHHHNFT.js';
|
|
5
|
+
import '../chunk/H7RY2N5U.js';
|
|
6
|
+
import '../chunk/ISC5GVA2.js';
|
|
7
7
|
import '../chunk/2IFPDU4D.js';
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
package/dist/flows/index.jsx
CHANGED
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
startCartCapture,
|
|
5
5
|
useSubscriptionIntakeFlow,
|
|
6
6
|
validateResumedPromo
|
|
7
|
-
} from "../chunk/
|
|
8
|
-
import "../chunk/
|
|
7
|
+
} from "../chunk/HADRZNID.jsx";
|
|
8
|
+
import "../chunk/YQK6OTY6.jsx";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_COLOR_PALETTE,
|
|
11
11
|
LIFECYCLE_BUCKETS,
|
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
buildFulfillmentRows,
|
|
30
30
|
buildMatrixView,
|
|
31
31
|
buildRefillView,
|
|
32
|
+
buildSaveBody,
|
|
32
33
|
buildStrengthRows,
|
|
33
34
|
buildTimeline,
|
|
34
35
|
buildTrackerView,
|
|
@@ -38,8 +39,10 @@ import {
|
|
|
38
39
|
captureFunnelEmail,
|
|
39
40
|
catalogUnavailableMessage,
|
|
40
41
|
categoryColor,
|
|
42
|
+
classifyAddPharmacyError,
|
|
41
43
|
classifyCatalogError,
|
|
42
44
|
classifyConversionError,
|
|
45
|
+
compareStrengths,
|
|
43
46
|
createCatalogProduct,
|
|
44
47
|
createFunnelTelemetry,
|
|
45
48
|
deriveAttention,
|
|
@@ -75,12 +78,17 @@ import {
|
|
|
75
78
|
markEmailGateAnswered,
|
|
76
79
|
matchProblem,
|
|
77
80
|
matchesComplete,
|
|
81
|
+
missingPrices,
|
|
78
82
|
moveInOrder,
|
|
83
|
+
needsReview,
|
|
79
84
|
normalizeState,
|
|
80
85
|
normalizeStates,
|
|
81
86
|
offerBeatsPromo,
|
|
82
87
|
offerDurationText,
|
|
83
88
|
offerSummaryText,
|
|
89
|
+
parseMoney,
|
|
90
|
+
pharmacyIsOnProduct,
|
|
91
|
+
pharmacyLabel,
|
|
84
92
|
primarySubscription,
|
|
85
93
|
readinessStatus,
|
|
86
94
|
reconcileCartAgainstCatalog,
|
|
@@ -95,9 +103,11 @@ import {
|
|
|
95
103
|
sourceKey,
|
|
96
104
|
sourceLabel,
|
|
97
105
|
stateAvailabilityNote,
|
|
106
|
+
strengthsChanged,
|
|
98
107
|
toChoices,
|
|
99
108
|
toTrackerRequest,
|
|
100
109
|
upsertDosePrice,
|
|
110
|
+
useAddPharmacy,
|
|
101
111
|
useAddressPair,
|
|
102
112
|
useAffiliateConversions,
|
|
103
113
|
useAffiliateDownline,
|
|
@@ -121,11 +131,12 @@ import {
|
|
|
121
131
|
useSurveyFlow,
|
|
122
132
|
useSurveyV2Flow,
|
|
123
133
|
useUpdatePaymentMethodFlow,
|
|
124
|
-
validateAddress
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
import "../chunk/
|
|
128
|
-
import "../chunk/
|
|
134
|
+
validateAddress,
|
|
135
|
+
visibleWarnings
|
|
136
|
+
} from "../chunk/GVXPPYZZ.jsx";
|
|
137
|
+
import "../chunk/6QI7MVTN.jsx";
|
|
138
|
+
import "../chunk/OVRA6JBK.jsx";
|
|
139
|
+
import "../chunk/3CWWN7H2.jsx";
|
|
129
140
|
import "../chunk/QVZ7BRNO.jsx";
|
|
130
141
|
export {
|
|
131
142
|
DEFAULT_COLOR_PALETTE,
|
|
@@ -151,6 +162,7 @@ export {
|
|
|
151
162
|
buildFulfillmentRows,
|
|
152
163
|
buildMatrixView,
|
|
153
164
|
buildRefillView,
|
|
165
|
+
buildSaveBody,
|
|
154
166
|
buildStrengthRows,
|
|
155
167
|
buildTimeline,
|
|
156
168
|
buildTrackerView,
|
|
@@ -160,8 +172,10 @@ export {
|
|
|
160
172
|
captureFunnelEmail,
|
|
161
173
|
catalogUnavailableMessage,
|
|
162
174
|
categoryColor,
|
|
175
|
+
classifyAddPharmacyError,
|
|
163
176
|
classifyCatalogError,
|
|
164
177
|
classifyConversionError,
|
|
178
|
+
compareStrengths,
|
|
165
179
|
createCatalogProduct,
|
|
166
180
|
createFunnelTelemetry,
|
|
167
181
|
deriveAttention,
|
|
@@ -197,12 +211,17 @@ export {
|
|
|
197
211
|
markEmailGateAnswered,
|
|
198
212
|
matchProblem,
|
|
199
213
|
matchesComplete,
|
|
214
|
+
missingPrices,
|
|
200
215
|
moveInOrder,
|
|
216
|
+
needsReview,
|
|
201
217
|
normalizeState,
|
|
202
218
|
normalizeStates,
|
|
203
219
|
offerBeatsPromo,
|
|
204
220
|
offerDurationText,
|
|
205
221
|
offerSummaryText,
|
|
222
|
+
parseMoney,
|
|
223
|
+
pharmacyIsOnProduct,
|
|
224
|
+
pharmacyLabel,
|
|
206
225
|
primarySubscription,
|
|
207
226
|
readinessStatus,
|
|
208
227
|
reconcileCartAgainstCatalog,
|
|
@@ -219,9 +238,11 @@ export {
|
|
|
219
238
|
sourceLabel,
|
|
220
239
|
startCartCapture,
|
|
221
240
|
stateAvailabilityNote,
|
|
241
|
+
strengthsChanged,
|
|
222
242
|
toChoices,
|
|
223
243
|
toTrackerRequest,
|
|
224
244
|
upsertDosePrice,
|
|
245
|
+
useAddPharmacy,
|
|
225
246
|
useAddressPair,
|
|
226
247
|
useAffiliateConversions,
|
|
227
248
|
useAffiliateDownline,
|
|
@@ -247,6 +268,7 @@ export {
|
|
|
247
268
|
useSurveyV2Flow,
|
|
248
269
|
useUpdatePaymentMethodFlow,
|
|
249
270
|
validateAddress,
|
|
250
|
-
validateResumedPromo
|
|
271
|
+
validateResumedPromo,
|
|
272
|
+
visibleWarnings
|
|
251
273
|
};
|
|
252
274
|
//# sourceMappingURL=index.jsx.map
|
package/dist/index/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export { PortalConfig, configure, getConfig } from '../config/index.js';
|
|
2
2
|
export { BannerProps, BannerVariant, ButtonProps, ButtonSize, ButtonVariant, CardProps, CheckboxGroupProps, ChoiceOption, HeadingProps, Primitives, PrimitivesProvider, RadioGroupProps, SelectOption, SelectProps, SpinnerProps, Status, StatusPillProps, StepIndicatorProps, TextFieldProps, TextareaProps, usePrimitives } from '../primitives/index.js';
|
|
3
3
|
export { defaultPrimitives } from '../primitives/default/index.js';
|
|
4
|
-
export { A as
|
|
4
|
+
export { A as AddPharmacyBody, a as AddPharmacyFinding, b as AddPharmacyPlan, c as AddPharmacyPrice, d as AddPharmacyResult, e as AddPharmacyStrengthAfter, f as AddPharmacyStrengthBefore, g as AddressVerifyResult, h as AdminApexDrug, i as AdminApexItemStatus, j as AdminBillingAttempt, k as AdminCategory, l as AdminCategoryInput, m as AdminCategoryUpdate, n as AdminCustomer, o as AdminCustomerFacts, p as AdminCustomerFunnel, q as AdminCustomerListParams, r as AdminCustomerOverview, s as AdminCustomerProfile, t as AdminCustomerRequest, u as AdminCustomerRow, v as AdminCustomerSupport, w as AdminCustomerSupportThread, x as AdminDashboardStats, y as AdminLifecycle, z as AdminLifecycleBucket, B as AdminListParams, C as AdminOffer, D as AdminOfferBase, E as AdminOfferGrant, F as AdminOfferGrantBase, G as AdminOfferInput, H as AdminOrderSummary, I as AdminOrphanReason, J as AdminOrphanedDosePrice, K as AdminPayment, L as AdminPaymentDetail, M as AdminProduct, N as AdminProductOverlayField, O as AdminProductPharmacy, P as AdminProductStrength, Q as AdminPromoCode, R as AdminPromoCodeInput, S as AdminRecurringPricePoint, T as AdminRecurringRevenue, U as AdminRefundResult, V as AdminSale, W as AdminSaleInput, X as AdminScheduledRefund, Y as AdminScheduledRefundProblem, Z as AdminSubscription, _ as AdminSubscriptionDetail, $ as AdminSubscriptionPatch, a0 as AdminSubscriptionWriteResult, a1 as AdminSupportCustomer, a2 as AdminSupportStats, a3 as AdminSupportThread, a4 as AdminWebhookEvent, a5 as Affiliate, a6 as AffiliateAuthTokens, a7 as AffiliateClickRecord, a8 as AffiliateConversion, a9 as AffiliateDashboardLinks, aa as AffiliateDashboardProfile, ab as AffiliateDashboardStats, ac as AffiliateDownlineMember, ad as AffiliateEarningsBreakdown, ae as AffiliatePaymentMethod, af as AffiliateProgram, ag as AffiliateRegisterInput, ah as AffiliateRegisterResponse, ai as AffiliateSession, aj as AffiliateStatsResponse, ak as AffiliateStatus, al as AffiliateTrackResponse, am as ApiError, an as ApiResponse, ao as AttributionMethod, ap as AuthTokens, aq as BillingReminderSettings, ar as CatalogAvailabilityItem, as as CatalogAvailabilityReason, at as CatalogAvailabilityResult, au as CatalogClassification, av as CatalogConversionChoice, aw as CatalogConversionCommitResult, ax as CatalogConversionDose, ay as CatalogConversionDoseMatch, az as CatalogConversionFinding, aA as CatalogConversionPointers, aB as CatalogConversionPrepareResult, aC as CatalogConversionPreview, aD as CatalogConversionRun, aE as CatalogConversionSource, aF as CatalogConversionStage, aG as CatalogConversionTarget, aH as CatalogConversionUndoOptions, aI as CatalogConversionUndoResult, aJ as CatalogDose, aK as CatalogDoseInput, aL as CatalogDoseModel, aM as CatalogDoseSuggestion, aN as CatalogDoseSuggestions, aO as CatalogEquivalentSuggestions, aP as CatalogFulfillment, aQ as CatalogFulfillmentInput, aR as CatalogItem, aS as CatalogItemInput, aT as CatalogMappableDrug, aU as CatalogMatrixCell, aV as CatalogProduct, aW as CatalogReadiness, aX as CategoryMetadata, aY as CheckoutAddress, aZ as CheckoutPayload, a_ as CheckoutResult, a$ as CommissionConfig, b0 as CommissionStatus, b1 as CompleteSurveyPayload, b2 as CreateAffiliatePayload, b3 as CreateAffiliateProgramPayload, b4 as CreateOrderPayload, b5 as CreateRequestPayload, b6 as CreateSubscriptionPayload, b7 as CustomTemplate, b8 as CustomTemplateInput, b9 as CustomerDiscountConfig, ba as DeliveryInfo, bb as DiscountType, bc as EmailNotificationSettings, bd as EmailTemplatesMap, be as LoginPayload, bf as MemberOffer, bg as MemberPrescriptionRequest, bh as MemberSurveyMode, bi as MemberSurveyResponseSummary, bj as MemberSurveyTranscript, bk as MemberSurveyTranscriptItem, bl as MemberSurveyTranscriptSection, bm as MembersMeResponse, bn as OfferGrantState, bo as Order, bp as OrderItemInput, bq as PaginationParams, br as PaymentCallbackPayload, bs as PaymentInitiatePayload, bt as PaymentType, bu as PendingRenewalSurvey, bv as Placeholder, bw as PlaceholderKind, bx as ProductSaleSummary, by as PromoValidationResponse, bz as PublicCategory, bA as RegisterAndSubscribePayload, bB as RegisterPayload, bC as RenewalStatus, bD as SUPPORT_ATTACHMENT_MAX_BYTES, bE as SUPPORT_ATTACHMENT_MIME_TYPES, bF as SelectDrugPayload, bG as SendMessagePayload, bH as SendToPharmacyPayload, bI as SubscriptionPreview, bJ as SubscriptionPreviewLine, bK as SubscriptionPreviewPayload, bL as SupportAttachment, bM as SupportChannel, bN as SupportChannelSettings, bO as SupportMessage, bP as SupportRealtimeToken, bQ as SupportThread, bR as SupportThreadCategory, bS as SupportThreadStatus, bT as SurveySubmitPayload, bU as TemplatePlaceholdersMap, bV as TemplateText, bW as TenantFeature, bX as TenantFeatureAccess, bY as TokenTrackName, bZ as UpdateAffiliatePayload, b_ as UpdateAffiliateProgramPayload, b$ as UpdatePaymentMethodPayload, c0 as UpdateProfilePayload, c1 as User, c2 as addressesApi, c3 as adminAffiliatesApi, c4 as adminApi, c5 as adminCatalogApi, c6 as adminCatalogConversionApi, c7 as adminProductPharmaciesApi, c8 as affiliateAuthStorageKey, c9 as affiliatePortalApi, ca as apexApi, cb as apiFetch, cc as authApi, cd as authStorageKey, ce as catalogApi, cf as clearAffiliateTokens, cg as clearTokens, ch as getAffiliateTokens, ci as getTokens, cj as membersApi, ck as messagesApi, cl as newIdempotencyKey, cm as offersApi, cn as onTokensCleared, co as ordersApi, cp as paymentsApi, cq as productsApi, cr as promoCodesApi, cs as setAffiliateTokens, ct as setTokens, cu as subscriptionsApi, cv as supportApi, cw as usersApi } from '../client-Da9ye3z4.js';
|
|
5
5
|
export { EmbedApiError as ApexV2ApiError, EmbedApiClient, EmbedApiClientOptions, EmbedApiError, EmbedEvent, EmbedEventType, FetchLike, PatientInfo, V2Answer, V2ComposedSurvey, V2DrugResult, V2QualificationResult, V2Question, V2QuestionOption, V2Section, V2Step, V2SubmitResult, V2VisibilityCondition, createEmbedApiClient, disqualificationReasonText, disqualifiedDrugIds, qualifiedDrugIds } from '@apextelemed/survey-core';
|
|
6
6
|
export { captureAffiliateRef, capturePromoCode, clearAffiliateRef, clearPromoCode, readAffiliateRef, readPromoCode } from '../api/index.js';
|
|
7
7
|
export { C as CartCaptureConfig, a as CartSnapshotLine, F as FunnelConfig, b as FunnelDraftPayload, R as ResumedCart, c as ResumedCartLine, d as ResumedDraft, e as adoptCartId, f as adoptFunnelSessionId, g as captureAuthHeader, h as cartId, i as fetchCartConfig, j as fetchFunnelConfig, k as fetchResumedCart, l as fetchResumedDraft, m as funnelSessionId, p as peekFunnelSessionId, n as postCartSnapshot, o as postFunnelEvent, r as readCartToken, q as readResumeToken, s as resetCartConfigCache, t as resetCartId, u as resetFunnelConfigCache, v as saveFunnelDraft, w as stripCartToken, x as stripResumeToken } from '../cart-BwUwSzWh.js';
|
|
8
8
|
export { MedicationSelection, affiliateAuthStore, authStore, medicationStore } from '../stores/index.js';
|
|
9
9
|
export { A as AppliedPromoCode, C as CartItem, c as cartStore } from '../cart-o6DpAu5y.js';
|
|
10
10
|
import { AddressPair } from '../flows/index.js';
|
|
11
|
-
export { AccountSource, AddStrengthInput, AddStrengthOutcome, AddressErrors, AddressValue, AffiliateConversionsFlow, AffiliateDownlineFlow, AffiliateLinksFlow, AffiliateStatsFlow, AnswerValue, ApexBlockCode, AttentionAction, AttentionActionKind, AttentionItem, CartCaptureOptions, CartCheckoutFlow, CartCheckoutOutcome, CartCheckoutPricing, CartDropReason, CartReconcileState, CartReconciliation, CartSource, CatalogAvailabilityDecision, CatalogAvailabilityState, CatalogConversion, CatalogFailure, CatalogFlow, CategoryColorOpts, CheckoutFlow, CheckoutOutcome, Conversation, ConversionConverted, ConversionFailure, ConversionNotice, ConversionState, ConversionSummary, CreateCatalogProductOutcome, DEFAULT_COLOR_PALETTE, DashboardActivityItem, DashboardData, DashboardRxListItem, DashboardRxStatus, DashboardSubscription, DroppedCartLine, DrugResult, FindingCopy, FlatStep, FulfillmentRow, FulfillmentStage, FunnelTelemetry, JourneyState, JourneyStep, JourneyStepKey, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, MATCH_DEPENDENT_WARNINGS, MATCH_HOW_LABEL, MatchChoice, MatchProblem, MatchRecord, MatchRow, MatrixView, MedicationPricing, MedicationSelectFlow, MemberPortalData, MemberPortalRx, MemberPortalSubscription, MessagesChannel, MessagesIntent, MessagesThread, NewCatalogProductInput, OFFER_BEATS_PROMO_NOTICE, ORPHAN_REASON, OfferDiscount, PricingBreakdown, ProductCatalogEditor, ProductDetailFlow, PromoPricing, READINESS_LABEL, ReadinessStatus, ReconcileOptions, RefillEvent, RefillView, RegisterFlow, RegisterOutcome, RequestStatus, ResolvedStrength, RxRequestStatus, SOURCE_FIELD_NOTE, Severity, ShipmentInfo, SignupFlow, SignupOutcome, StageState, StoredDosePrice, StrengthRow, StructureState, SubscribeFlow, SubscribeOutcome, SubscriptionIntakeFlow, SubscriptionIntakeOutcome, SurveyFlow, SurveyOption, SurveyOutcome, SurveyQuestion, SurveyResult, TERMINAL_SUBSCRIPTION_STATUSES, ThreadMessage, TimelineEvent, TimelineKind, Tone, TrackerRequest, TrackerRequestStatus, TrackerSubscription, TrackerSubscriptionStatus, TrackerView, TrackingUrlCarrier, US_STATES, US_STATE_OPTIONS, UpdatePaymentMethodFlow, UseAddressPairOptions, UseCatalogConversionOptions, UseCheckoutFlowOptions, UseMedicationSelectOptions, UseMessagesThreadOptions, UseProductCatalogEditorOptions, UseSignupFlowOptions, UseSubscribeFlowOptions, UseSubscriptionIntakeFlowOptions, UseSurveyFlowOptions, ValidateAddressOptions, ValidatedResumedPromo, VisibilityCondition, accountSource, addCatalogItemAsProduct, applyPriceDrafts, availableStateOptions, availableStates, bestOfferDiscount, buildFulfillmentRows, buildMatrixView, buildRefillView, buildStrengthRows, buildTimeline, buildTrackerView, buildTrackingUrl, canLeaveUnmatched, canOfferConversion, captureFunnelEmail, catalogUnavailableMessage, categoryColor, classifyCatalogError, classifyConversionError, 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, moveInOrder, normalizeState, normalizeStates, offerBeatsPromo, offerDurationText, offerSummaryText, primarySubscription, readinessStatus, reconcileCartAgainstCatalog, reconcileCartLines, redeemResumeLink, removeStoredDosePrice, resetResumeRedemption, resolveCategoryColor, resolveStrengthPrices, restoreCartFromLink, salePriceForBase, skuBindingModeFor, sourceKey, sourceLabel, startCartCapture, stateAvailabilityNote, toChoices, toTrackerRequest, upsertDosePrice, 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 } from '../flows/index.js';
|
|
11
|
+
export { AccountSource, AddPharmacy, AddPharmacyFailure, AddPharmacyNotice, AddPharmacyState, AddStrengthInput, AddStrengthOutcome, AddedPharmacy, AddressErrors, AddressValue, AffiliateConversionsFlow, AffiliateDownlineFlow, AffiliateLinksFlow, AffiliateStatsFlow, AnswerValue, ApexBlockCode, AttentionAction, AttentionActionKind, AttentionItem, CartCaptureOptions, CartCheckoutFlow, CartCheckoutOutcome, CartCheckoutPricing, CartDropReason, CartReconcileState, CartReconciliation, CartSource, CatalogAvailabilityDecision, CatalogAvailabilityState, CatalogConversion, CatalogFailure, CatalogFlow, CategoryColorOpts, CheckoutFlow, CheckoutOutcome, Conversation, ConversionConverted, ConversionFailure, ConversionNotice, ConversionState, ConversionSummary, CreateCatalogProductOutcome, DEFAULT_COLOR_PALETTE, DashboardActivityItem, DashboardData, DashboardRxListItem, DashboardRxStatus, DashboardSubscription, DroppedCartLine, DrugResult, FindingCopy, FlatStep, FulfillmentRow, FulfillmentStage, FunnelTelemetry, JourneyState, JourneyStep, JourneyStepKey, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, MATCH_DEPENDENT_WARNINGS, MATCH_HOW_LABEL, MatchChoice, MatchProblem, MatchRecord, MatchRow, MatrixView, MedicationPricing, MedicationSelectFlow, MemberPortalData, MemberPortalRx, MemberPortalSubscription, MessagesChannel, MessagesIntent, MessagesThread, NewCatalogProductInput, OFFER_BEATS_PROMO_NOTICE, ORPHAN_REASON, OfferDiscount, PricingBreakdown, ProductCatalogEditor, ProductDetailFlow, PromoPricing, READINESS_LABEL, ReadinessStatus, ReconcileOptions, RefillEvent, RefillView, RegisterFlow, RegisterOutcome, RequestStatus, ResolvedStrength, RxRequestStatus, SOURCE_FIELD_NOTE, Severity, ShipmentInfo, SignupFlow, SignupOutcome, StageState, StoredDosePrice, StrengthComparison, StrengthRow, StructureState, SubscribeFlow, SubscribeOutcome, SubscriptionIntakeFlow, SubscriptionIntakeOutcome, SurveyFlow, SurveyOption, SurveyOutcome, SurveyQuestion, SurveyResult, TERMINAL_SUBSCRIPTION_STATUSES, ThreadMessage, TimelineEvent, TimelineKind, Tone, TrackerRequest, TrackerRequestStatus, TrackerSubscription, TrackerSubscriptionStatus, TrackerView, TrackingUrlCarrier, US_STATES, US_STATE_OPTIONS, UpdatePaymentMethodFlow, UseAddPharmacyOptions, UseAddressPairOptions, UseCatalogConversionOptions, UseCheckoutFlowOptions, UseMedicationSelectOptions, UseMessagesThreadOptions, UseProductCatalogEditorOptions, UseSignupFlowOptions, UseSubscribeFlowOptions, UseSubscriptionIntakeFlowOptions, UseSurveyFlowOptions, ValidateAddressOptions, ValidatedResumedPromo, 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 } from '../flows/index.js';
|
|
12
12
|
export { U as UseSurveyV2FlowOptions, u as useSurveyV2Flow } from '../surveyV2-BgQHK0GE.js';
|
|
13
13
|
export { ADMIN_TAB_SEGMENTS, AFFILIATE_SUB_TAB_SEGMENTS, AdminAuthAdapter, AdminDashboard, AdminDashboardProps, AdminTab, AdminTabGroup, AdminToast, AffiliateAuthAdapter, AffiliateForgotPassword, AffiliateForgotPasswordProps, AffiliateLogin, AffiliateLoginProps, AffiliatePortal, AffiliatePortalProps, AffiliatePortalTab, AffiliateRegister, AffiliateRegisterProps, AffiliateResetPassword, AffiliateResetPasswordProps, AffiliateSubTab, AffiliatesProps, CartCheckoutPage, CartCheckoutPageProps, CheckoutPage, CheckoutPageProps, EmailTemplates, ForgotPasswordPage, ForgotPasswordPageProps, LegalLink, MedicationGuideContent, MedicationGuideResolver, MemberAuthAdapter, MemberPortal, MemberPortalBrand, MemberPortalProps, MemberPortalRoutes, PatientDashboardPreview, PatientDashboardPreviewProps, RegisterPage, RegisterPageProps, ResetPasswordPage, ResetPasswordPageProps, SignupPage, SignupPageProps, SubscribePage, SubscribePageProps, SurveyPage, SurveyPageProps, SurveyV2Page, SurveyV2PageProps, UpdatePaymentMethod, UpdatePaymentMethodProps, adminTabFromPath, adminTabPath, affiliateSubTabFromPath, affiliateSubTabPath } from '../pages/index.js';
|
|
14
14
|
import { JSX } from 'solid-js';
|