@apextelemed/partner-core 0.9.0 → 0.10.0-dev.21
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/README.md +26 -0
- 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/{AJR7CBZ3.js → 4CTTOSOW.js} +3 -3
- package/dist/chunk/{AJR7CBZ3.js.map → 4CTTOSOW.js.map} +1 -1
- package/dist/chunk/{VKSLQCMA.jsx → 75F4YFYC.jsx} +725 -5
- package/dist/chunk/{NTYUIUQO.jsx → BALHOD46.jsx} +74 -2
- package/dist/chunk/{MCSS436N.js → CYGHTTCA.js} +2495 -1132
- package/dist/chunk/CYGHTTCA.js.map +1 -0
- package/dist/chunk/{MUEGVUP2.jsx → DBW2RWHV.jsx} +2 -2
- package/dist/chunk/{Y2VD7NYA.js → DHVOZQQ2.js} +3 -3
- package/dist/chunk/{Y2VD7NYA.js.map → DHVOZQQ2.js.map} +1 -1
- package/dist/chunk/{C7RXQWXM.jsx → ET3GPUTR.jsx} +5 -5
- package/dist/chunk/{65LD7XAZ.js → JL7B6RHG.js} +3 -3
- package/dist/chunk/{65LD7XAZ.js.map → JL7B6RHG.js.map} +1 -1
- package/dist/chunk/{35C2PAUI.js → L2ZMGXWR.js} +699 -6
- package/dist/chunk/L2ZMGXWR.js.map +1 -0
- package/dist/chunk/{75B7QHIN.js → NSEWFPUP.js} +75 -4
- package/dist/chunk/NSEWFPUP.js.map +1 -0
- package/dist/chunk/{IYLVDYRI.jsx → OA3A3PUC.jsx} +2028 -926
- package/dist/chunk/{DEDIHIWD.jsx → QIBVNW2V.jsx} +2 -2
- package/dist/chunk/{JOX6EJMB.js → TYXWVNC3.js} +6 -6
- package/dist/chunk/{JOX6EJMB.js.map → TYXWVNC3.js.map} +1 -1
- package/dist/chunk/{33QXG46Z.jsx → ZW2HBOS5.jsx} +2 -2
- package/dist/{client-RY9ghN5Q.d.ts → client-CDpCqI4d.d.ts} +184 -2
- package/dist/flows/index.d.ts +333 -2
- package/dist/flows/index.js +6 -6
- package/dist/flows/index.jsx +46 -6
- package/dist/index/index.d.ts +2 -2
- package/dist/index/index.js +7 -7
- package/dist/index/index.jsx +49 -7
- 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/dist/theme/admin.css +161 -1
- package/package.json +1 -1
- package/dist/chunk/35C2PAUI.js.map +0 -1
- package/dist/chunk/75B7QHIN.js.map +0 -1
- package/dist/chunk/MCSS436N.js.map +0 -1
package/dist/flows/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Accessor, Resource } from 'solid-js';
|
|
2
|
-
import { A as AddressVerifyResult,
|
|
2
|
+
import { A as AddressVerifyResult, at as CheckoutAddress, ac as CatalogAvailabilityResult, bu as User, aH as DeliveryInfo, b5 as RenewalStatus, aZ as PendingRenewalSurvey, s as AdminLifecycleBucket, k as AdminCustomerOverview, J as AdminSubscriptionDetail, m as AdminCustomerRequest, bi as SupportThreadCategory, aq as CatalogProduct, T as AffiliateConversion, X as AffiliateDownlineMember, U as AffiliateDashboardLinks, W as AffiliateDashboardStats, ad as CatalogClassification, ag as CatalogDoseModel, w as AdminOrphanedDosePrice, z as AdminProduct, am as CatalogItem, ah as CatalogDoseSuggestion, ao as CatalogMappableDrug, aj as CatalogEquivalentSuggestions, ar as CatalogReadiness, b1 as PromoValidationResponse } from '../client-CDpCqI4d.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';
|
|
@@ -1542,6 +1542,337 @@ declare function resolveCategoryColor(category: {
|
|
|
1542
1542
|
color?: string | null;
|
|
1543
1543
|
}, opts?: CategoryColorOpts): string;
|
|
1544
1544
|
|
|
1545
|
+
/**
|
|
1546
|
+
* One editor for a catalog-backed product: pricing and storefront metadata
|
|
1547
|
+
* (the-backend's) laid over ONE Apex catalog item (Apex's).
|
|
1548
|
+
*
|
|
1549
|
+
* Apex owns the structure — the item's strengths (doses, `cdose_…`), which
|
|
1550
|
+
* pharmacy drug fills the item at each pharmacy, and the pharmacies' preference
|
|
1551
|
+
* order. the-backend owns what each strength costs, keyed by the Apex dose id
|
|
1552
|
+
* inside `product.dosagePrices[].apexSkuId`. An admin should not need to know
|
|
1553
|
+
* two systems are involved, so this flow presents them as one and takes care of
|
|
1554
|
+
* the seam:
|
|
1555
|
+
*
|
|
1556
|
+
* - Writes are not atomic across the two systems. EVERY sequence writes Apex
|
|
1557
|
+
* first and the-backend second, so a failure between them leaves a state the
|
|
1558
|
+
* same screen can finish: a strength that exists and "needs a price", an item
|
|
1559
|
+
* that exists and is "Available to add". A priced product never points at
|
|
1560
|
+
* something Apex doesn't have.
|
|
1561
|
+
* - A write is never retried blindly. When the outcome is ambiguous (network
|
|
1562
|
+
* drop, 5xx, timeout) the editor re-reads from the server and only offers a
|
|
1563
|
+
* retry once it has seen that the write did not land — or adopts the result
|
|
1564
|
+
* if it did. If it can't re-read, it offers nothing and says why.
|
|
1565
|
+
* - Fails closed for STRUCTURE: when Apex can't be asked, strengths and
|
|
1566
|
+
* fulfillments become read-only. Pricing and metadata stay editable.
|
|
1567
|
+
* - Apex's own 4xx messages (classification must agree, one fulfillment per
|
|
1568
|
+
* pharmacy, …) are shown next to the control that caused them, verbatim.
|
|
1569
|
+
* - `dosagePrices` is round-tripped, never rebuilt from the ladder: PATCH
|
|
1570
|
+
* replaces the whole array, and a price whose dose Apex stopped offering
|
|
1571
|
+
* (an orphan) lives only there until an admin explicitly removes it.
|
|
1572
|
+
*
|
|
1573
|
+
* The pure decision logic (error classification, row building, price edits,
|
|
1574
|
+
* reorder maths, readiness reading) is exported separately and unit-tested
|
|
1575
|
+
* without a component tree.
|
|
1576
|
+
*/
|
|
1577
|
+
|
|
1578
|
+
/** The `code`s the admin catalog proxy answers when Apex itself is the problem. */
|
|
1579
|
+
type ApexBlockCode = 'apex_unavailable' | 'apex_credentials_rejected' | 'apex_not_configured';
|
|
1580
|
+
type CatalogFailure =
|
|
1581
|
+
/** Apex (or the backend) refused: a definitive "it did not happen". `message`
|
|
1582
|
+
* is Apex's own invariant text and is shown unchanged. */
|
|
1583
|
+
{
|
|
1584
|
+
kind: 'rejected';
|
|
1585
|
+
message: string;
|
|
1586
|
+
status?: number;
|
|
1587
|
+
}
|
|
1588
|
+
/** Apex can't be used at all right now. `definitive`: the request was refused
|
|
1589
|
+
* before anything could happen (bad credentials, not linked). */
|
|
1590
|
+
| {
|
|
1591
|
+
kind: 'blocked';
|
|
1592
|
+
code: ApexBlockCode;
|
|
1593
|
+
message: string;
|
|
1594
|
+
definitive: boolean;
|
|
1595
|
+
}
|
|
1596
|
+
/** The request may or may not have landed (dropped connection, 5xx, timeout). */
|
|
1597
|
+
| {
|
|
1598
|
+
kind: 'ambiguous';
|
|
1599
|
+
message: string;
|
|
1600
|
+
};
|
|
1601
|
+
/**
|
|
1602
|
+
* Sort a thrown error into what the editor can do about it. Duck-typed on
|
|
1603
|
+
* `status` / `code` / `ambiguous` (what `ApiError` carries) so it has no
|
|
1604
|
+
* dependency on the class identity; branches on codes and statuses, never on
|
|
1605
|
+
* message prose.
|
|
1606
|
+
*/
|
|
1607
|
+
declare function classifyCatalogError(err: unknown): CatalogFailure;
|
|
1608
|
+
type StoredDosePrice = AdminProduct['dosagePrices'][number];
|
|
1609
|
+
/** A strength as the editor lists it: Apex's dose joined to our price for it. */
|
|
1610
|
+
interface StrengthRow {
|
|
1611
|
+
/** The Apex dose id, or `label:<dosage>` for a stored row with no id. */
|
|
1612
|
+
key: string;
|
|
1613
|
+
doseId: string | null;
|
|
1614
|
+
label: string;
|
|
1615
|
+
value: number | null;
|
|
1616
|
+
unit: string | null;
|
|
1617
|
+
/** False for a dose Apex has withdrawn: listed, never sold, no price to set. */
|
|
1618
|
+
active: boolean;
|
|
1619
|
+
/** This dose's own stored price (null: it charges the product base price). */
|
|
1620
|
+
ownPrice: number | null;
|
|
1621
|
+
}
|
|
1622
|
+
/** The stored entry a dose's price lives on: bound to its id, else a label-only
|
|
1623
|
+
* entry saved before anything was bound (the only handle that entry has). */
|
|
1624
|
+
declare function findStoredDosePrice(stored: readonly StoredDosePrice[], doseId: string | null, label: string): StoredDosePrice | undefined;
|
|
1625
|
+
/**
|
|
1626
|
+
* The strengths list. Apex's catalog read is the authority for which doses
|
|
1627
|
+
* exist (inactive ones included); the product's own `strengths` fills in when
|
|
1628
|
+
* the catalog read is unavailable, and the stored `dosagePrices` is the last
|
|
1629
|
+
* resort so pricing stays editable even then.
|
|
1630
|
+
*/
|
|
1631
|
+
declare function buildStrengthRows(product: AdminProduct, readiness: CatalogReadiness | null): StrengthRow[];
|
|
1632
|
+
interface ResolvedStrength {
|
|
1633
|
+
row: StrengthRow;
|
|
1634
|
+
/** What a customer would be charged for this strength. */
|
|
1635
|
+
price: number | null;
|
|
1636
|
+
source: 'dose' | 'base' | null;
|
|
1637
|
+
/** No price from the dose or the base: it can't be sold. Withdrawn doses never need one. */
|
|
1638
|
+
needsPrice: boolean;
|
|
1639
|
+
}
|
|
1640
|
+
/**
|
|
1641
|
+
* Each strength's effective price with the admin's unsaved edits applied —
|
|
1642
|
+
* the backend's own rule (a dose's price, else the base price), so "needs a
|
|
1643
|
+
* price" on screen is what will be true after Save. A flat-fee product charges
|
|
1644
|
+
* the base price for every strength.
|
|
1645
|
+
*/
|
|
1646
|
+
declare function resolveStrengthPrices(rows: readonly StrengthRow[], drafts: Readonly<Record<string, string>>, base: number | null, flatFee: boolean): ResolvedStrength[];
|
|
1647
|
+
/**
|
|
1648
|
+
* The `dosagePrices` array after applying unsaved price edits, or `null` when
|
|
1649
|
+
* nothing would change. Edits an entry in place (matched by Apex dose id) and
|
|
1650
|
+
* leaves every other entry — orphans included, unknown keys included — exactly
|
|
1651
|
+
* as stored: this is the round-trip that PATCH-replaces-the-array demands. It
|
|
1652
|
+
* never rebuilds from the ladder.
|
|
1653
|
+
*/
|
|
1654
|
+
declare function applyPriceDrafts(stored: readonly StoredDosePrice[], rows: readonly StrengthRow[], drafts: Readonly<Record<string, string>>): StoredDosePrice[] | null;
|
|
1655
|
+
/** Adds or updates one dose's price in the stored array, touching nothing else. */
|
|
1656
|
+
declare function upsertDosePrice(stored: readonly StoredDosePrice[], dose: {
|
|
1657
|
+
dosage: string;
|
|
1658
|
+
apexSkuId: string;
|
|
1659
|
+
price: number | null;
|
|
1660
|
+
}): StoredDosePrice[];
|
|
1661
|
+
/** The stored array minus ONE orphaned entry (the explicit "remove" action). */
|
|
1662
|
+
declare function removeStoredDosePrice(stored: readonly StoredDosePrice[], orphan: Pick<AdminOrphanedDosePrice, 'dosage' | 'apexSkuId'>): StoredDosePrice[];
|
|
1663
|
+
/** True for an Apex partner-catalog item id (`cat_…`), as opposed to a legacy
|
|
1664
|
+
* pharmacy drug id. The only place this package looks at an Apex id's shape. */
|
|
1665
|
+
declare function isCatalogItemId(id: string | null | undefined): id is string;
|
|
1666
|
+
/**
|
|
1667
|
+
* The binding mode that goes with a dose-keyed `dosagePrices`: `bound` once any
|
|
1668
|
+
* entry carries an Apex dose id (so the id is forwarded with the order),
|
|
1669
|
+
* `prescriber_picks` is the admin's explicit choice and is never overridden.
|
|
1670
|
+
*/
|
|
1671
|
+
declare function skuBindingModeFor(dosagePrices: readonly StoredDosePrice[], current: AdminProduct['skuBindingMode']): AdminProduct['skuBindingMode'];
|
|
1672
|
+
declare const ORPHAN_REASON: Record<AdminOrphanedDosePrice['reason'], string>;
|
|
1673
|
+
interface FulfillmentRow {
|
|
1674
|
+
id: string;
|
|
1675
|
+
rank: number;
|
|
1676
|
+
pharmacyId: string;
|
|
1677
|
+
pharmacyName: string;
|
|
1678
|
+
drugId: string;
|
|
1679
|
+
drugName: string;
|
|
1680
|
+
enabled: boolean;
|
|
1681
|
+
excludedStates: string[];
|
|
1682
|
+
/** Setup problems that block this whole mapping (missing credentials, …). */
|
|
1683
|
+
problems: string[];
|
|
1684
|
+
}
|
|
1685
|
+
/** One row per pharmacy, in preference order (Apex orders by rank, then pharmacy). */
|
|
1686
|
+
declare function buildFulfillmentRows(readiness: CatalogReadiness | null, drugs: readonly CatalogMappableDrug[]): FulfillmentRow[];
|
|
1687
|
+
/** `ids` with `id` moved one place; the same array when it can't move. */
|
|
1688
|
+
declare function moveInOrder(ids: readonly string[], id: string, direction: 'up' | 'down'): string[];
|
|
1689
|
+
/** Excluded states as Apex wants them: two-letter, upper-case, unique, sorted. */
|
|
1690
|
+
declare function normalizeStates(states: readonly string[]): string[];
|
|
1691
|
+
type ReadinessStatus = 'ready' | 'incomplete' | 'unfillable';
|
|
1692
|
+
/**
|
|
1693
|
+
* One traffic light for the item, read the way Apex's own editor reads it:
|
|
1694
|
+
* unfillable with no enabled pharmacy; ready when every dose is producible
|
|
1695
|
+
* somewhere and no mapping has setup problems; incomplete otherwise.
|
|
1696
|
+
*/
|
|
1697
|
+
declare function readinessStatus(readiness: CatalogReadiness): ReadinessStatus;
|
|
1698
|
+
declare const READINESS_LABEL: Record<ReadinessStatus, string>;
|
|
1699
|
+
interface MatrixView {
|
|
1700
|
+
doses: Array<{
|
|
1701
|
+
id: string;
|
|
1702
|
+
label: string;
|
|
1703
|
+
active: boolean;
|
|
1704
|
+
}>;
|
|
1705
|
+
columns: FulfillmentRow[];
|
|
1706
|
+
cells: Record<string, Record<string, {
|
|
1707
|
+
producible: boolean;
|
|
1708
|
+
detail?: string;
|
|
1709
|
+
}>>;
|
|
1710
|
+
/** "New Life can't make 7.5 mg" — one sentence per cell that can't be made. */
|
|
1711
|
+
problems: Array<{
|
|
1712
|
+
pharmacyName: string;
|
|
1713
|
+
dose: string;
|
|
1714
|
+
sentence: string;
|
|
1715
|
+
detail?: string;
|
|
1716
|
+
}>;
|
|
1717
|
+
}
|
|
1718
|
+
/** The dose × pharmacy grid in preference order, plus the misses spelled out. */
|
|
1719
|
+
declare function buildMatrixView(readiness: CatalogReadiness | null, columns: readonly FulfillmentRow[]): MatrixView;
|
|
1720
|
+
/** Mappable drugs grouped by pharmacy (name order), minus pharmacies already mapped. */
|
|
1721
|
+
declare function groupDrugsByPharmacy(drugs: readonly CatalogMappableDrug[], mappedPharmacyIds?: ReadonlySet<string>): Array<{
|
|
1722
|
+
pharmacyId: string;
|
|
1723
|
+
pharmacyName: string;
|
|
1724
|
+
drugs: CatalogMappableDrug[];
|
|
1725
|
+
}>;
|
|
1726
|
+
type StructureState = {
|
|
1727
|
+
kind: 'loading';
|
|
1728
|
+
} | {
|
|
1729
|
+
kind: 'editable';
|
|
1730
|
+
}
|
|
1731
|
+
/** Apex can't be asked: structure is read-only; pricing and metadata are not. */
|
|
1732
|
+
| {
|
|
1733
|
+
kind: 'read_only';
|
|
1734
|
+
message: string;
|
|
1735
|
+
}
|
|
1736
|
+
/** Apex no longer lists this product's catalog item. */
|
|
1737
|
+
| {
|
|
1738
|
+
kind: 'missing';
|
|
1739
|
+
};
|
|
1740
|
+
type AddStrengthOutcome =
|
|
1741
|
+
/** The strength exists (and is priced, when a price was given). */
|
|
1742
|
+
{
|
|
1743
|
+
kind: 'added';
|
|
1744
|
+
doseId: string;
|
|
1745
|
+
}
|
|
1746
|
+
/** The strength exists in Apex but its price did not save: it shows "needs a
|
|
1747
|
+
* price" and the attempted price is kept as a draft to save again. */
|
|
1748
|
+
| {
|
|
1749
|
+
kind: 'added_unpriced';
|
|
1750
|
+
doseId: string;
|
|
1751
|
+
message: string;
|
|
1752
|
+
} | {
|
|
1753
|
+
kind: 'rejected' | 'not_done' | 'unknown' | 'blocked' | 'busy';
|
|
1754
|
+
message: string;
|
|
1755
|
+
};
|
|
1756
|
+
interface AddStrengthInput {
|
|
1757
|
+
label?: string;
|
|
1758
|
+
value?: number;
|
|
1759
|
+
unit?: string;
|
|
1760
|
+
/** Dollars as typed; blank adds the strength without its own price. */
|
|
1761
|
+
price?: string;
|
|
1762
|
+
}
|
|
1763
|
+
interface UseProductCatalogEditorOptions {
|
|
1764
|
+
/** The product being edited (its `apexDrugId` is the catalog item). */
|
|
1765
|
+
product: Accessor<AdminProduct>;
|
|
1766
|
+
/** Called with the product the server returned after a write the editor made. */
|
|
1767
|
+
onProductChanged?: (product: AdminProduct) => void;
|
|
1768
|
+
/** False for a product that isn't catalog-backed: nothing is loaded or called. Default true. */
|
|
1769
|
+
enabled?: Accessor<boolean>;
|
|
1770
|
+
}
|
|
1771
|
+
interface ProductCatalogEditor {
|
|
1772
|
+
product: Accessor<AdminProduct>;
|
|
1773
|
+
item: Accessor<CatalogItem | null>;
|
|
1774
|
+
structure: Accessor<StructureState>;
|
|
1775
|
+
loading: Accessor<boolean>;
|
|
1776
|
+
/** The control being written right now (all structure controls disable on it). */
|
|
1777
|
+
busy: Accessor<string | null>;
|
|
1778
|
+
/** Re-read the item, the pharmacy drugs and the product. Clears a read-only state if Apex answers. */
|
|
1779
|
+
reload: () => Promise<void>;
|
|
1780
|
+
/** Server messages by control: `strength:add`, `strength:<rowKey>`, `orphan:<key>`,
|
|
1781
|
+
* `fulfillment:add`, `fulfillment:<id>`, `suggest:doses`, `suggest:equivalents`. */
|
|
1782
|
+
errors: Accessor<Readonly<Record<string, string>>>;
|
|
1783
|
+
clearError: (key: string) => void;
|
|
1784
|
+
rows: Accessor<StrengthRow[]>;
|
|
1785
|
+
orphans: Accessor<AdminOrphanedDosePrice[]>;
|
|
1786
|
+
priceDrafts: Accessor<Readonly<Record<string, string>>>;
|
|
1787
|
+
setPriceDraft: (rowKey: string, value: string) => void;
|
|
1788
|
+
clearPriceDrafts: () => void;
|
|
1789
|
+
/** `dosagePrices` with the unsaved price edits applied to the stored array, or null if none. */
|
|
1790
|
+
dosagePricesUpdate: () => StoredDosePrice[] | null;
|
|
1791
|
+
addStrength: (input: AddStrengthInput) => Promise<AddStrengthOutcome>;
|
|
1792
|
+
removeStrength: (doseId: string) => Promise<boolean>;
|
|
1793
|
+
removeOrphan: (orphan: AdminOrphanedDosePrice) => Promise<boolean>;
|
|
1794
|
+
doseSuggestions: Accessor<CatalogDoseSuggestion[] | null>;
|
|
1795
|
+
loadDoseSuggestions: () => Promise<void>;
|
|
1796
|
+
addSuggestedDoses: (picked: CatalogDoseSuggestion[]) => Promise<{
|
|
1797
|
+
added: number;
|
|
1798
|
+
stoppedAt?: string;
|
|
1799
|
+
}>;
|
|
1800
|
+
drugs: Accessor<CatalogMappableDrug[]>;
|
|
1801
|
+
fulfillments: Accessor<FulfillmentRow[]>;
|
|
1802
|
+
addFulfillment: (pharmacyId: string, drugId: string) => Promise<boolean>;
|
|
1803
|
+
setFulfillmentEnabled: (fulfillmentId: string, enabled: boolean) => Promise<boolean>;
|
|
1804
|
+
setExcludedStates: (fulfillmentId: string, states: string[]) => Promise<boolean>;
|
|
1805
|
+
removeFulfillment: (fulfillmentId: string) => Promise<boolean>;
|
|
1806
|
+
moveFulfillment: (fulfillmentId: string, direction: 'up' | 'down') => Promise<boolean>;
|
|
1807
|
+
equivalents: Accessor<CatalogEquivalentSuggestions | null>;
|
|
1808
|
+
loadEquivalents: () => Promise<void>;
|
|
1809
|
+
readiness: Accessor<CatalogReadiness | null>;
|
|
1810
|
+
status: Accessor<ReadinessStatus | null>;
|
|
1811
|
+
matrix: Accessor<MatrixView>;
|
|
1812
|
+
warnings: Accessor<string[]>;
|
|
1813
|
+
}
|
|
1814
|
+
declare function useProductCatalogEditor(opts: UseProductCatalogEditorOptions): ProductCatalogEditor;
|
|
1815
|
+
type NewCatalogProductInput = {
|
|
1816
|
+
mode: 'from_drug';
|
|
1817
|
+
drugId: string;
|
|
1818
|
+
} | {
|
|
1819
|
+
mode: 'blank';
|
|
1820
|
+
name: string;
|
|
1821
|
+
classification: CatalogClassification;
|
|
1822
|
+
doseModel: CatalogDoseModel;
|
|
1823
|
+
description?: string;
|
|
1824
|
+
};
|
|
1825
|
+
type CreateCatalogProductOutcome =
|
|
1826
|
+
/** The item exists in Apex and the product exists in the-backend (hidden, unpriced). */
|
|
1827
|
+
{
|
|
1828
|
+
kind: 'created';
|
|
1829
|
+
productId: string;
|
|
1830
|
+
itemId: string;
|
|
1831
|
+
name: string;
|
|
1832
|
+
warning?: string;
|
|
1833
|
+
}
|
|
1834
|
+
/** The item exists in Apex but no product points at it yet. It now appears
|
|
1835
|
+
* under "Available to add"; `addCatalogItemAsProduct` finishes the job (safe:
|
|
1836
|
+
* it creates no second item). */
|
|
1837
|
+
| {
|
|
1838
|
+
kind: 'item_only';
|
|
1839
|
+
itemId: string;
|
|
1840
|
+
name: string;
|
|
1841
|
+
message: string;
|
|
1842
|
+
}
|
|
1843
|
+
/** Nothing was created (Apex refused, or an ambiguous failure was shown not to have landed). */
|
|
1844
|
+
| {
|
|
1845
|
+
kind: 'failed';
|
|
1846
|
+
message: string;
|
|
1847
|
+
retryable: boolean;
|
|
1848
|
+
}
|
|
1849
|
+
/** An ambiguous failure that could not be re-read: whether an item exists is
|
|
1850
|
+
* unknown, so no retry is offered. */
|
|
1851
|
+
| {
|
|
1852
|
+
kind: 'unknown';
|
|
1853
|
+
message: string;
|
|
1854
|
+
};
|
|
1855
|
+
/**
|
|
1856
|
+
* Add the-backend product for an Apex catalog item that has none yet. Used as
|
|
1857
|
+
* step two of `createCatalogProduct` and on its own to finish after a partial
|
|
1858
|
+
* failure. It creates no catalog item, so retrying it can't duplicate one.
|
|
1859
|
+
*/
|
|
1860
|
+
declare function addCatalogItemAsProduct(itemId: string, name: string): Promise<{
|
|
1861
|
+
kind: 'created';
|
|
1862
|
+
productId: string;
|
|
1863
|
+
} | {
|
|
1864
|
+
kind: 'failed';
|
|
1865
|
+
message: string;
|
|
1866
|
+
maybeCreated: boolean;
|
|
1867
|
+
}>;
|
|
1868
|
+
/**
|
|
1869
|
+
* "New prescription product": create the catalog item in Apex (blank, or seeded
|
|
1870
|
+
* from a pharmacy drug), THEN the product in the-backend. Apex first, always,
|
|
1871
|
+
* so a product can never point at an item that failed to create; if the second
|
|
1872
|
+
* step fails the item stays and is offered under "Available to add".
|
|
1873
|
+
*/
|
|
1874
|
+
declare function createCatalogProduct(input: NewCatalogProductInput): Promise<CreateCatalogProductOutcome>;
|
|
1875
|
+
|
|
1545
1876
|
interface SurveyResult {
|
|
1546
1877
|
surveyResponseId: string;
|
|
1547
1878
|
/**
|
|
@@ -1830,4 +2161,4 @@ declare function restoreCartFromLink(): Promise<ResumedCart | null>;
|
|
|
1830
2161
|
*/
|
|
1831
2162
|
declare function startCartCapture(opts?: CartCaptureOptions): () => void;
|
|
1832
2163
|
|
|
1833
|
-
export { type AccountSource, type AddressErrors, type AddressPair, type AddressValue, type AffiliateConversionsFlow, type AffiliateDownlineFlow, type AffiliateLinksFlow, type AffiliateStatsFlow, type AnswerValue, 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 CatalogFlow, CatalogProduct, type CategoryColorOpts, type CheckoutFlow, type CheckoutOutcome, type Conversation, DEFAULT_COLOR_PALETTE, type DashboardActivityItem, type DashboardData, type DashboardRxListItem, type DashboardRxStatus, type DashboardSubscription, type DroppedCartLine, type DrugResult, type FlatStep, type FulfillmentStage, type FunnelTelemetry, type JourneyState, type JourneyStep, type JourneyStepKey, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, type MedicationPricing, type MedicationSelectFlow, type MemberPortalData, type MemberPortalRx, type MemberPortalSubscription, type MessagesChannel, type MessagesIntent, type MessagesThread, type PricingBreakdown, type ProductDetailFlow, type PromoPricing, type ReconcileOptions, type RefillEvent, type RefillView, type RegisterFlow, type RegisterOutcome, type RequestStatus, type RxRequestStatus, type Severity, type ShipmentInfo, type SignupFlow, type SignupOutcome, type StageState, 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 UseCheckoutFlowOptions, type UseMedicationSelectOptions, type UseMessagesThreadOptions, type UseSignupFlowOptions, type UseSubscribeFlowOptions, type UseSubscriptionIntakeFlowOptions, type UseSurveyFlowOptions, type ValidateAddressOptions, type ValidatedResumedPromo, type VisibilityCondition, accountSource, availableStateOptions, availableStates, buildRefillView, buildTimeline, buildTrackerView, buildTrackingUrl, captureFunnelEmail, catalogUnavailableMessage, categoryColor, createFunnelTelemetry, deriveAttention, deriveCatalogAvailabilityDecision, deriveJourney, emailGateAnswered, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, hasErrors, isCssColorValue, isLive, isQuestionVisible, isReconcilable, lifecycleReason, lowestPrice, lowestSalePrice, markEmailGateAnswered, normalizeState, primarySubscription, reconcileCartAgainstCatalog, reconcileCartLines, redeemResumeLink, resetResumeRedemption, resolveCategoryColor, restoreCartFromLink, salePriceForBase, startCartCapture, stateAvailabilityNote, toTrackerRequest, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCartReconcile, useCatalog, useCatalogAvailability, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductDetail, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSubscriptionIntakeFlow, useSurveyFlow, useUpdatePaymentMethodFlow, validateAddress, validateResumedPromo };
|
|
2164
|
+
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 CatalogFailure, type CatalogFlow, CatalogProduct, type CategoryColorOpts, type CheckoutFlow, type CheckoutOutcome, type Conversation, type CreateCatalogProductOutcome, DEFAULT_COLOR_PALETTE, type DashboardActivityItem, type DashboardData, type DashboardRxListItem, type DashboardRxStatus, type DashboardSubscription, type DroppedCartLine, type DrugResult, type FlatStep, type FulfillmentRow, type FulfillmentStage, type FunnelTelemetry, type JourneyState, type JourneyStep, type JourneyStepKey, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, type MatrixView, type MedicationPricing, type MedicationSelectFlow, type MemberPortalData, type MemberPortalRx, type MemberPortalSubscription, type MessagesChannel, type MessagesIntent, type MessagesThread, type NewCatalogProductInput, ORPHAN_REASON, 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, 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 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, buildFulfillmentRows, buildMatrixView, buildRefillView, buildStrengthRows, buildTimeline, buildTrackerView, buildTrackingUrl, captureFunnelEmail, catalogUnavailableMessage, categoryColor, classifyCatalogError, createCatalogProduct, createFunnelTelemetry, deriveAttention, deriveCatalogAvailabilityDecision, deriveJourney, emailGateAnswered, findStoredDosePrice, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, groupDrugsByPharmacy, hasErrors, isCatalogItemId, isCssColorValue, isLive, isQuestionVisible, isReconcilable, lifecycleReason, lowestPrice, lowestSalePrice, markEmailGateAnswered, moveInOrder, normalizeState, normalizeStates, primarySubscription, readinessStatus, reconcileCartAgainstCatalog, reconcileCartLines, redeemResumeLink, removeStoredDosePrice, resetResumeRedemption, resolveCategoryColor, resolveStrengthPrices, restoreCartFromLink, salePriceForBase, skuBindingModeFor, startCartCapture, stateAvailabilityNote, toTrackerRequest, upsertDosePrice, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCartReconcile, useCatalog, useCatalogAvailability, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductCatalogEditor, useProductDetail, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSubscriptionIntakeFlow, useSurveyFlow, useUpdatePaymentMethodFlow, validateAddress, validateResumedPromo };
|
package/dist/flows/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { restoreCartFromLink, startCartCapture, useSubscriptionIntakeFlow, validateResumedPromo } from '../chunk/
|
|
2
|
-
import '../chunk/
|
|
3
|
-
export { DEFAULT_COLOR_PALETTE, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, TERMINAL_SUBSCRIPTION_STATUSES, US_STATES, US_STATE_OPTIONS, accountSource, availableStateOptions, availableStates, buildRefillView, buildTimeline, buildTrackerView, buildTrackingUrl, captureFunnelEmail, catalogUnavailableMessage, categoryColor, createFunnelTelemetry, deriveAttention, deriveCatalogAvailabilityDecision, deriveJourney, emailGateAnswered, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, hasErrors, isCssColorValue, isLive, isQuestionVisible, isReconcilable, lifecycleReason, lowestPrice, lowestSalePrice, markEmailGateAnswered, normalizeState, primarySubscription, reconcileCartAgainstCatalog, reconcileCartLines, redeemResumeLink, resetResumeRedemption, resolveCategoryColor, salePriceForBase, stateAvailabilityNote, toTrackerRequest, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCartReconcile, useCatalog, useCatalogAvailability, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductDetail, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress } from '../chunk/
|
|
4
|
-
import '../chunk/
|
|
5
|
-
import '../chunk/
|
|
6
|
-
import '../chunk/
|
|
1
|
+
export { restoreCartFromLink, startCartCapture, useSubscriptionIntakeFlow, validateResumedPromo } from '../chunk/TYXWVNC3.js';
|
|
2
|
+
import '../chunk/4CTTOSOW.js';
|
|
3
|
+
export { DEFAULT_COLOR_PALETTE, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, ORPHAN_REASON, READINESS_LABEL, TERMINAL_SUBSCRIPTION_STATUSES, US_STATES, US_STATE_OPTIONS, accountSource, addCatalogItemAsProduct, applyPriceDrafts, availableStateOptions, availableStates, buildFulfillmentRows, buildMatrixView, buildRefillView, buildStrengthRows, buildTimeline, buildTrackerView, buildTrackingUrl, captureFunnelEmail, catalogUnavailableMessage, categoryColor, classifyCatalogError, createCatalogProduct, createFunnelTelemetry, deriveAttention, deriveCatalogAvailabilityDecision, deriveJourney, emailGateAnswered, findStoredDosePrice, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, groupDrugsByPharmacy, hasErrors, isCatalogItemId, isCssColorValue, isLive, isQuestionVisible, isReconcilable, lifecycleReason, lowestPrice, lowestSalePrice, markEmailGateAnswered, moveInOrder, normalizeState, normalizeStates, primarySubscription, readinessStatus, reconcileCartAgainstCatalog, reconcileCartLines, redeemResumeLink, removeStoredDosePrice, resetResumeRedemption, resolveCategoryColor, resolveStrengthPrices, salePriceForBase, skuBindingModeFor, stateAvailabilityNote, toTrackerRequest, upsertDosePrice, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCartReconcile, useCatalog, useCatalogAvailability, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductCatalogEditor, useProductDetail, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress } from '../chunk/L2ZMGXWR.js';
|
|
4
|
+
import '../chunk/JL7B6RHG.js';
|
|
5
|
+
import '../chunk/DHVOZQQ2.js';
|
|
6
|
+
import '../chunk/NSEWFPUP.js';
|
|
7
7
|
import '../chunk/5XGPFYIJ.js';
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
package/dist/flows/index.jsx
CHANGED
|
@@ -3,32 +3,42 @@ import {
|
|
|
3
3
|
startCartCapture,
|
|
4
4
|
useSubscriptionIntakeFlow,
|
|
5
5
|
validateResumedPromo
|
|
6
|
-
} from "../chunk/
|
|
7
|
-
import "../chunk/
|
|
6
|
+
} from "../chunk/ET3GPUTR.jsx";
|
|
7
|
+
import "../chunk/QIBVNW2V.jsx";
|
|
8
8
|
import {
|
|
9
9
|
DEFAULT_COLOR_PALETTE,
|
|
10
10
|
LIFECYCLE_BUCKETS,
|
|
11
11
|
LIFECYCLE_LABEL,
|
|
12
12
|
LIFECYCLE_TONE,
|
|
13
13
|
LIVE_SUBSCRIPTION_STATUSES,
|
|
14
|
+
ORPHAN_REASON,
|
|
15
|
+
READINESS_LABEL,
|
|
14
16
|
TERMINAL_SUBSCRIPTION_STATUSES,
|
|
15
17
|
US_STATES,
|
|
16
18
|
US_STATE_OPTIONS,
|
|
17
19
|
accountSource,
|
|
20
|
+
addCatalogItemAsProduct,
|
|
21
|
+
applyPriceDrafts,
|
|
18
22
|
availableStateOptions,
|
|
19
23
|
availableStates,
|
|
24
|
+
buildFulfillmentRows,
|
|
25
|
+
buildMatrixView,
|
|
20
26
|
buildRefillView,
|
|
27
|
+
buildStrengthRows,
|
|
21
28
|
buildTimeline,
|
|
22
29
|
buildTrackerView,
|
|
23
30
|
buildTrackingUrl,
|
|
24
31
|
captureFunnelEmail,
|
|
25
32
|
catalogUnavailableMessage,
|
|
26
33
|
categoryColor,
|
|
34
|
+
classifyCatalogError,
|
|
35
|
+
createCatalogProduct,
|
|
27
36
|
createFunnelTelemetry,
|
|
28
37
|
deriveAttention,
|
|
29
38
|
deriveCatalogAvailabilityDecision,
|
|
30
39
|
deriveJourney,
|
|
31
40
|
emailGateAnswered,
|
|
41
|
+
findStoredDosePrice,
|
|
32
42
|
formatCardNumber,
|
|
33
43
|
formatConversationTime,
|
|
34
44
|
formatCvv,
|
|
@@ -37,7 +47,9 @@ import {
|
|
|
37
47
|
formatMessageTime,
|
|
38
48
|
formatRelativeTime,
|
|
39
49
|
formatStageDate,
|
|
50
|
+
groupDrugsByPharmacy,
|
|
40
51
|
hasErrors,
|
|
52
|
+
isCatalogItemId,
|
|
41
53
|
isCssColorValue,
|
|
42
54
|
isLive,
|
|
43
55
|
isQuestionVisible,
|
|
@@ -46,16 +58,23 @@ import {
|
|
|
46
58
|
lowestPrice,
|
|
47
59
|
lowestSalePrice,
|
|
48
60
|
markEmailGateAnswered,
|
|
61
|
+
moveInOrder,
|
|
49
62
|
normalizeState,
|
|
63
|
+
normalizeStates,
|
|
50
64
|
primarySubscription,
|
|
65
|
+
readinessStatus,
|
|
51
66
|
reconcileCartAgainstCatalog,
|
|
52
67
|
reconcileCartLines,
|
|
53
68
|
redeemResumeLink,
|
|
69
|
+
removeStoredDosePrice,
|
|
54
70
|
resetResumeRedemption,
|
|
55
71
|
resolveCategoryColor,
|
|
72
|
+
resolveStrengthPrices,
|
|
56
73
|
salePriceForBase,
|
|
74
|
+
skuBindingModeFor,
|
|
57
75
|
stateAvailabilityNote,
|
|
58
76
|
toTrackerRequest,
|
|
77
|
+
upsertDosePrice,
|
|
59
78
|
useAddressPair,
|
|
60
79
|
useAffiliateConversions,
|
|
61
80
|
useAffiliateDownline,
|
|
@@ -70,6 +89,7 @@ import {
|
|
|
70
89
|
useMedicationSelect,
|
|
71
90
|
useMemberPortalData,
|
|
72
91
|
useMessagesThread,
|
|
92
|
+
useProductCatalogEditor,
|
|
73
93
|
useProductDetail,
|
|
74
94
|
useRegisterFlow,
|
|
75
95
|
useSignupFlow,
|
|
@@ -78,10 +98,10 @@ import {
|
|
|
78
98
|
useSurveyV2Flow,
|
|
79
99
|
useUpdatePaymentMethodFlow,
|
|
80
100
|
validateAddress
|
|
81
|
-
} from "../chunk/
|
|
82
|
-
import "../chunk/
|
|
83
|
-
import "../chunk/
|
|
84
|
-
import "../chunk/
|
|
101
|
+
} from "../chunk/75F4YFYC.jsx";
|
|
102
|
+
import "../chunk/ZW2HBOS5.jsx";
|
|
103
|
+
import "../chunk/DBW2RWHV.jsx";
|
|
104
|
+
import "../chunk/BALHOD46.jsx";
|
|
85
105
|
import "../chunk/LDZIUFDM.jsx";
|
|
86
106
|
export {
|
|
87
107
|
DEFAULT_COLOR_PALETTE,
|
|
@@ -89,24 +109,34 @@ export {
|
|
|
89
109
|
LIFECYCLE_LABEL,
|
|
90
110
|
LIFECYCLE_TONE,
|
|
91
111
|
LIVE_SUBSCRIPTION_STATUSES,
|
|
112
|
+
ORPHAN_REASON,
|
|
113
|
+
READINESS_LABEL,
|
|
92
114
|
TERMINAL_SUBSCRIPTION_STATUSES,
|
|
93
115
|
US_STATES,
|
|
94
116
|
US_STATE_OPTIONS,
|
|
95
117
|
accountSource,
|
|
118
|
+
addCatalogItemAsProduct,
|
|
119
|
+
applyPriceDrafts,
|
|
96
120
|
availableStateOptions,
|
|
97
121
|
availableStates,
|
|
122
|
+
buildFulfillmentRows,
|
|
123
|
+
buildMatrixView,
|
|
98
124
|
buildRefillView,
|
|
125
|
+
buildStrengthRows,
|
|
99
126
|
buildTimeline,
|
|
100
127
|
buildTrackerView,
|
|
101
128
|
buildTrackingUrl,
|
|
102
129
|
captureFunnelEmail,
|
|
103
130
|
catalogUnavailableMessage,
|
|
104
131
|
categoryColor,
|
|
132
|
+
classifyCatalogError,
|
|
133
|
+
createCatalogProduct,
|
|
105
134
|
createFunnelTelemetry,
|
|
106
135
|
deriveAttention,
|
|
107
136
|
deriveCatalogAvailabilityDecision,
|
|
108
137
|
deriveJourney,
|
|
109
138
|
emailGateAnswered,
|
|
139
|
+
findStoredDosePrice,
|
|
110
140
|
formatCardNumber,
|
|
111
141
|
formatConversationTime,
|
|
112
142
|
formatCvv,
|
|
@@ -115,7 +145,9 @@ export {
|
|
|
115
145
|
formatMessageTime,
|
|
116
146
|
formatRelativeTime,
|
|
117
147
|
formatStageDate,
|
|
148
|
+
groupDrugsByPharmacy,
|
|
118
149
|
hasErrors,
|
|
150
|
+
isCatalogItemId,
|
|
119
151
|
isCssColorValue,
|
|
120
152
|
isLive,
|
|
121
153
|
isQuestionVisible,
|
|
@@ -124,18 +156,25 @@ export {
|
|
|
124
156
|
lowestPrice,
|
|
125
157
|
lowestSalePrice,
|
|
126
158
|
markEmailGateAnswered,
|
|
159
|
+
moveInOrder,
|
|
127
160
|
normalizeState,
|
|
161
|
+
normalizeStates,
|
|
128
162
|
primarySubscription,
|
|
163
|
+
readinessStatus,
|
|
129
164
|
reconcileCartAgainstCatalog,
|
|
130
165
|
reconcileCartLines,
|
|
131
166
|
redeemResumeLink,
|
|
167
|
+
removeStoredDosePrice,
|
|
132
168
|
resetResumeRedemption,
|
|
133
169
|
resolveCategoryColor,
|
|
170
|
+
resolveStrengthPrices,
|
|
134
171
|
restoreCartFromLink,
|
|
135
172
|
salePriceForBase,
|
|
173
|
+
skuBindingModeFor,
|
|
136
174
|
startCartCapture,
|
|
137
175
|
stateAvailabilityNote,
|
|
138
176
|
toTrackerRequest,
|
|
177
|
+
upsertDosePrice,
|
|
139
178
|
useAddressPair,
|
|
140
179
|
useAffiliateConversions,
|
|
141
180
|
useAffiliateDownline,
|
|
@@ -150,6 +189,7 @@ export {
|
|
|
150
189
|
useMedicationSelect,
|
|
151
190
|
useMemberPortalData,
|
|
152
191
|
useMessagesThread,
|
|
192
|
+
useProductCatalogEditor,
|
|
153
193
|
useProductDetail,
|
|
154
194
|
useRegisterFlow,
|
|
155
195
|
useSignupFlow,
|
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 AddressVerifyResult, a as AdminApexDrug, b as
|
|
4
|
+
export { A as AddressVerifyResult, a as AdminApexDrug, b as AdminApexItemStatus, c as AdminBillingAttempt, d as AdminCategory, e as AdminCategoryInput, f as AdminCategoryUpdate, g as AdminCustomer, h as AdminCustomerFacts, i as AdminCustomerFunnel, j as AdminCustomerListParams, k as AdminCustomerOverview, l as AdminCustomerProfile, m as AdminCustomerRequest, n as AdminCustomerRow, o as AdminCustomerSupport, p as AdminCustomerSupportThread, q as AdminDashboardStats, r as AdminLifecycle, s as AdminLifecycleBucket, t as AdminListParams, u as AdminOrderSummary, v as AdminOrphanReason, w as AdminOrphanedDosePrice, x as AdminPayment, y as AdminPaymentDetail, z as AdminProduct, B as AdminProductOverlayField, C as AdminProductStrength, D as AdminPromoCode, E as AdminPromoCodeInput, F as AdminRefundResult, G as AdminSale, H as AdminSaleInput, I as AdminSubscription, J as AdminSubscriptionDetail, K as AdminSubscriptionPatch, L as AdminSubscriptionWriteResult, M as AdminSupportCustomer, N as AdminSupportStats, O as AdminSupportThread, P as AdminWebhookEvent, Q as Affiliate, R as AffiliateAuthTokens, S as AffiliateClickRecord, T as AffiliateConversion, U as AffiliateDashboardLinks, V as AffiliateDashboardProfile, W as AffiliateDashboardStats, X as AffiliateDownlineMember, Y as AffiliateEarningsBreakdown, Z as AffiliatePaymentMethod, _ as AffiliateProgram, $ as AffiliateRegisterInput, a0 as AffiliateRegisterResponse, a1 as AffiliateSession, a2 as AffiliateStatsResponse, a3 as AffiliateStatus, a4 as AffiliateTrackResponse, a5 as ApiError, a6 as ApiResponse, a7 as AttributionMethod, a8 as AuthTokens, a9 as BillingReminderSettings, aa as CatalogAvailabilityItem, ab as CatalogAvailabilityReason, ac as CatalogAvailabilityResult, ad as CatalogClassification, ae as CatalogDose, af as CatalogDoseInput, ag as CatalogDoseModel, ah as CatalogDoseSuggestion, ai as CatalogDoseSuggestions, aj as CatalogEquivalentSuggestions, ak as CatalogFulfillment, al as CatalogFulfillmentInput, am as CatalogItem, an as CatalogItemInput, ao as CatalogMappableDrug, ap as CatalogMatrixCell, aq as CatalogProduct, ar as CatalogReadiness, as as CategoryMetadata, at as CheckoutAddress, au as CheckoutPayload, av as CheckoutResult, aw as CommissionConfig, ax as CommissionStatus, ay as CompleteSurveyPayload, az as CreateAffiliatePayload, aA as CreateAffiliateProgramPayload, aB as CreateOrderPayload, aC as CreateRequestPayload, aD as CreateSubscriptionPayload, aE as CustomTemplate, aF as CustomTemplateInput, aG as CustomerDiscountConfig, aH as DeliveryInfo, aI as DiscountType, aJ as EmailNotificationSettings, aK as EmailTemplatesMap, aL as LoginPayload, aM as MemberPrescriptionRequest, aN as MemberSurveyMode, aO as MemberSurveyResponseSummary, aP as MemberSurveyTranscript, aQ as MemberSurveyTranscriptItem, aR as MemberSurveyTranscriptSection, aS as MembersMeResponse, aT as Order, aU as OrderItemInput, aV as PaginationParams, aW as PaymentCallbackPayload, aX as PaymentInitiatePayload, aY as PaymentType, aZ as PendingRenewalSurvey, a_ as Placeholder, a$ as PlaceholderKind, b0 as ProductSaleSummary, b1 as PromoValidationResponse, b2 as PublicCategory, b3 as RegisterAndSubscribePayload, b4 as RegisterPayload, b5 as RenewalStatus, b6 as SUPPORT_ATTACHMENT_MAX_BYTES, b7 as SUPPORT_ATTACHMENT_MIME_TYPES, b8 as SelectDrugPayload, b9 as SendMessagePayload, ba as SendToPharmacyPayload, bb as SubscriptionPreview, bc as SubscriptionPreviewLine, bd as SubscriptionPreviewPayload, be as SupportAttachment, bf as SupportMessage, bg as SupportRealtimeToken, bh as SupportThread, bi as SupportThreadCategory, bj as SupportThreadStatus, bk as SurveySubmitPayload, bl as TemplatePlaceholdersMap, bm as TemplateText, bn as TenantFeature, bo as TenantFeatureAccess, bp as TokenTrackName, bq as UpdateAffiliatePayload, br as UpdateAffiliateProgramPayload, bs as UpdatePaymentMethodPayload, bt as UpdateProfilePayload, bu as User, bv as addressesApi, bw as adminAffiliatesApi, bx as adminApi, by as adminCatalogApi, bz as affiliateAuthStorageKey, bA as affiliatePortalApi, bB as apexApi, bC as apiFetch, bD as authApi, bE as authStorageKey, bF as catalogApi, bG as clearAffiliateTokens, bH as clearTokens, bI as getAffiliateTokens, bJ as getTokens, bK as membersApi, bL as messagesApi, bM as newIdempotencyKey, bN as onTokensCleared, bO as ordersApi, bP as paymentsApi, bQ as productsApi, bR as promoCodesApi, bS as setAffiliateTokens, bT as setTokens, bU as subscriptionsApi, bV as supportApi, bW as usersApi } from '../client-CDpCqI4d.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, AddressErrors, AddressValue, AffiliateConversionsFlow, AffiliateDownlineFlow, AffiliateLinksFlow, AffiliateStatsFlow, AnswerValue, AttentionAction, AttentionActionKind, AttentionItem, CartCaptureOptions, CartCheckoutFlow, CartCheckoutOutcome, CartCheckoutPricing, CartDropReason, CartReconcileState, CartReconciliation, CartSource, CatalogAvailabilityDecision, CatalogAvailabilityState, CatalogFlow, CategoryColorOpts, CheckoutFlow, CheckoutOutcome, Conversation, DEFAULT_COLOR_PALETTE, DashboardActivityItem, DashboardData, DashboardRxListItem, DashboardRxStatus, DashboardSubscription, DroppedCartLine, DrugResult, FlatStep, FulfillmentStage, FunnelTelemetry, JourneyState, JourneyStep, JourneyStepKey, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, MedicationPricing, MedicationSelectFlow, MemberPortalData, MemberPortalRx, MemberPortalSubscription, MessagesChannel, MessagesIntent, MessagesThread, PricingBreakdown, ProductDetailFlow, PromoPricing, ReconcileOptions, RefillEvent, RefillView, RegisterFlow, RegisterOutcome, RequestStatus, RxRequestStatus, Severity, ShipmentInfo, SignupFlow, SignupOutcome, StageState, 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, UseCheckoutFlowOptions, UseMedicationSelectOptions, UseMessagesThreadOptions, UseSignupFlowOptions, UseSubscribeFlowOptions, UseSubscriptionIntakeFlowOptions, UseSurveyFlowOptions, ValidateAddressOptions, ValidatedResumedPromo, VisibilityCondition, accountSource, availableStateOptions, availableStates, buildRefillView, buildTimeline, buildTrackerView, buildTrackingUrl, captureFunnelEmail, catalogUnavailableMessage, categoryColor, createFunnelTelemetry, deriveAttention, deriveCatalogAvailabilityDecision, deriveJourney, emailGateAnswered, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, hasErrors, isCssColorValue, isLive, isQuestionVisible, isReconcilable, lifecycleReason, lowestPrice, lowestSalePrice, markEmailGateAnswered, normalizeState, primarySubscription, reconcileCartAgainstCatalog, reconcileCartLines, redeemResumeLink, resetResumeRedemption, resolveCategoryColor, restoreCartFromLink, salePriceForBase, startCartCapture, stateAvailabilityNote, toTrackerRequest, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCartReconcile, useCatalog, useCatalogAvailability, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductDetail, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSubscriptionIntakeFlow, useSurveyFlow, useUpdatePaymentMethodFlow, validateAddress, validateResumedPromo } 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, CatalogFailure, CatalogFlow, CategoryColorOpts, CheckoutFlow, CheckoutOutcome, Conversation, CreateCatalogProductOutcome, DEFAULT_COLOR_PALETTE, DashboardActivityItem, DashboardData, DashboardRxListItem, DashboardRxStatus, DashboardSubscription, DroppedCartLine, DrugResult, FlatStep, FulfillmentRow, FulfillmentStage, FunnelTelemetry, JourneyState, JourneyStep, JourneyStepKey, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, MatrixView, MedicationPricing, MedicationSelectFlow, MemberPortalData, MemberPortalRx, MemberPortalSubscription, MessagesChannel, MessagesIntent, MessagesThread, NewCatalogProductInput, ORPHAN_REASON, PricingBreakdown, ProductCatalogEditor, ProductDetailFlow, PromoPricing, READINESS_LABEL, ReadinessStatus, ReconcileOptions, RefillEvent, RefillView, RegisterFlow, RegisterOutcome, RequestStatus, ResolvedStrength, RxRequestStatus, 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, UseCheckoutFlowOptions, UseMedicationSelectOptions, UseMessagesThreadOptions, UseProductCatalogEditorOptions, UseSignupFlowOptions, UseSubscribeFlowOptions, UseSubscriptionIntakeFlowOptions, UseSurveyFlowOptions, ValidateAddressOptions, ValidatedResumedPromo, VisibilityCondition, accountSource, addCatalogItemAsProduct, applyPriceDrafts, availableStateOptions, availableStates, buildFulfillmentRows, buildMatrixView, buildRefillView, buildStrengthRows, buildTimeline, buildTrackerView, buildTrackingUrl, captureFunnelEmail, catalogUnavailableMessage, categoryColor, classifyCatalogError, createCatalogProduct, createFunnelTelemetry, deriveAttention, deriveCatalogAvailabilityDecision, deriveJourney, emailGateAnswered, findStoredDosePrice, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, groupDrugsByPharmacy, hasErrors, isCatalogItemId, isCssColorValue, isLive, isQuestionVisible, isReconcilable, lifecycleReason, lowestPrice, lowestSalePrice, markEmailGateAnswered, moveInOrder, normalizeState, normalizeStates, primarySubscription, readinessStatus, reconcileCartAgainstCatalog, reconcileCartLines, redeemResumeLink, removeStoredDosePrice, resetResumeRedemption, resolveCategoryColor, resolveStrengthPrices, restoreCartFromLink, salePriceForBase, skuBindingModeFor, startCartCapture, stateAvailabilityNote, toTrackerRequest, upsertDosePrice, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCartReconcile, useCatalog, useCatalogAvailability, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductCatalogEditor, useProductDetail, useRegisterFlow, useSignupFlow, useSubscribeFlow, useSubscriptionIntakeFlow, useSurveyFlow, useUpdatePaymentMethodFlow, validateAddress, validateResumedPromo } 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';
|