@apextelemed/partner-core 0.18.0-dev.59 → 0.19.0-dev.61
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 +3 -3
- package/dist/chunk/{HECRSRX5.jsx → 33BDC6MT.jsx} +2 -2
- package/dist/chunk/{AXCXMZKP.js → CDRUVUTJ.js} +6 -6
- package/dist/chunk/{AXCXMZKP.js.map → CDRUVUTJ.js.map} +1 -1
- package/dist/chunk/{P6RRDH3K.jsx → EED3KNR7.jsx} +2 -2
- package/dist/chunk/{C4V7G2WO.js → GJSE37VN.js} +3 -3
- package/dist/chunk/{C4V7G2WO.js.map → GJSE37VN.js.map} +1 -1
- package/dist/chunk/{IJR3CERD.js → HEQLEGHI.js} +10 -2
- package/dist/chunk/HEQLEGHI.js.map +1 -0
- package/dist/chunk/{QMMIJ5T5.jsx → LA6F37YV.jsx} +5 -5
- package/dist/chunk/{HWUNDWNY.js → OOMMZESR.js} +3 -3
- package/dist/chunk/{HWUNDWNY.js.map → OOMMZESR.js.map} +1 -1
- package/dist/chunk/{23TRH45I.jsx → OZHJ5IGL.jsx} +4 -4
- package/dist/chunk/{OMHZD4JU.jsx → TFJKTKZ3.jsx} +1969 -1807
- package/dist/chunk/{B3IHYFCS.js → UZ2K7HBG.js} +1034 -802
- package/dist/chunk/UZ2K7HBG.js.map +1 -0
- package/dist/chunk/{PJVEDHQN.js → VGF2LLAD.js} +5 -5
- package/dist/chunk/{PJVEDHQN.js.map → VGF2LLAD.js.map} +1 -1
- package/dist/chunk/{6D2HEGRD.js → WTHAR2P2.js} +3 -3
- package/dist/chunk/{6D2HEGRD.js.map → WTHAR2P2.js.map} +1 -1
- package/dist/chunk/{WSP34CNN.jsx → X6WJQ47H.jsx} +9 -1
- package/dist/chunk/{QN3GGUYU.jsx → ZWAZNB4Y.jsx} +2 -2
- package/dist/{client-DUg3WI5F.d.ts → client-CMbSYUam.d.ts} +37 -1
- package/dist/flows/index.d.ts +1 -1
- package/dist/flows/index.js +6 -6
- package/dist/flows/index.jsx +6 -6
- package/dist/index/index.d.ts +1 -1
- package/dist/index/index.js +7 -7
- package/dist/index/index.jsx +7 -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/package.json +1 -1
- package/dist/chunk/B3IHYFCS.js.map +0 -1
- package/dist/chunk/IJR3CERD.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { peekFunnelSessionId, captureAuthHeader } from './
|
|
1
|
+
import { peekFunnelSessionId, captureAuthHeader } from './OOMMZESR.js';
|
|
2
2
|
import { getConfig } from './2IFPDU4D.js';
|
|
3
3
|
|
|
4
4
|
// src/api/promoRef.ts
|
|
@@ -156,5 +156,5 @@ function stripCartToken() {
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
export { adoptCartId, capturePromoCode, cartId, clearPromoCode, fetchCartConfig, fetchResumedCart, postCartSnapshot, readCartToken, readPromoCode, resetCartConfigCache, resetCartId, stripCartToken };
|
|
159
|
-
//# sourceMappingURL=
|
|
160
|
-
//# sourceMappingURL=
|
|
159
|
+
//# sourceMappingURL=WTHAR2P2.js.map
|
|
160
|
+
//# sourceMappingURL=WTHAR2P2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/api/promoRef.ts","../../src/api/cart.ts"],"names":[],"mappings":";;;;AAiBA,IAAM,MAAA,GAAS,EAAA,GAAK,EAAA,GAAK,EAAA,GAAK,EAAA,GAAK,GAAA;AAEnC,IAAM,UAAA,GAAa,MAAM,CAAA,EAAG,SAAA,GAAY,aAAa,CAAA,WAAA,CAAA;AAQ9C,SAAS,iBAAiB,IAAA,EAAoB;AACnD,EAAA,IAAI,OAAO,iB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AAS,MAAM,CAAA,CAAE,IAAI,MAAM,CAAA;AACpE,IAAA,OAAO,KAAA,IAAS,KAAA,CAAM,MAAA,GAAS,CAAA,GAAI,KAAA,GAAQ,IAAA;AAAA,EAC7C,CAAA,CAAA,MAAQ;AACN,IAAA,OAAO,IAAA;AAAA,EACT;AACF;AAOO,SAAS,cAAA,GAAuB;AACrC,EAAA,IAAI;AACF,IAAA,MAAM,GAAA,GAAM,IAAI,GAAA,CAAI,MAAA,CAAO,SAAS,IAAI,CAAA;AACxC,IAAA,IAAI,CAAC,GAAA,CAAI,YAAA,CAAa,GAAA,CAAI,MAAM,CAAA,EAAG;AACnC,IAAA,GAAA,CAAI,YAAA,CAAa,OAAO,MAAM,CAAA;AAC9B,IAAA,MAAA,CAAO,QAAQ,YAAA,CAAa,IAAI,EAAA,EAAI,GAAA,CAAI,UAAU,CAAA;AAAA,EACpD,CAAA,CAAA,MAAQ;AAAA,EAER;AACF","file":"6D2HEGRD.js","sourcesContent":["// ── First-party promo-code capture from a `?promo=` landing ──────────\n//\n// A campaign link can carry its own code (`/?promo=TRUE10`) so the member does\n// not have to type it. Stashed in the storefront's own localStorage and read\n// back when the intake reaches the promo field.\n//\n// Mirrors `affiliateRef` deliberately — same storage shape, same 30-day window —\n// but is a SEPARATE concern: an affiliate ref attributes a sale to a partner and\n// is validated server-side at checkout, while this only pre-fills an input the\n// member still has to submit.\n\nimport { getConfig } from '../config';\n\n// Matches the affiliate-ref window. A stash that outlives the promo it carries\n// is not a correctness problem — the code is re-validated before it is used,\n// and silently dropped if it has expired — but there is no reason to keep one\n// around longer than a campaign plausibly runs.\nconst TTL_MS = 30 * 24 * 60 * 60 * 1000;\n\nconst storageKey = () => `${getConfig().storagePrefix}-promo-code`;\n\ninterface StoredPromo {\n code: string;\n ts: number;\n}\n\n/** Persist a promo code from a `?promo=` landing. No-op for empty input. */\nexport function capturePromoCode(code: string): void {\n if (typeof localStorage === 'undefined') return;\n const trimmed = code.trim();\n if (!trimmed) return;\n try {\n const entry: StoredPromo = { code: trimmed, ts: Date.now() };\n localStorage.setItem(storageKey(), JSON.stringify(entry));\n } catch {\n // storage unavailable (private mode / quota) — non-fatal\n }\n}\n\n/**\n * Read the stored promo code, or null if absent or past the storage window.\n *\n * Being within the window says nothing about whether the CODE is still valid —\n * a campaign can end while the stash is fresh. The caller re-validates against\n * the server before showing it to anyone.\n */\nexport function readPromoCode(): string | null {\n if (typeof localStorage === 'undefined') return null;\n try {\n const raw = localStorage.getItem(storageKey());\n if (!raw) return null;\n const parsed = JSON.parse(raw) as Partial<StoredPromo>;\n if (!parsed.code || typeof parsed.ts !== 'number') return null;\n if (Date.now() - parsed.ts > TTL_MS) {\n localStorage.removeItem(storageKey());\n return null;\n }\n return parsed.code;\n } catch {\n return null;\n }\n}\n\n/** Drop the stored promo code. */\nexport function clearPromoCode(): void {\n if (typeof localStorage === 'undefined') return;\n try {\n localStorage.removeItem(storageKey());\n } catch {\n // non-fatal\n }\n}\n","import { getConfig } from '../config';\nimport { captureAuthHeader, peekFunnelSessionId } from './funnel';\n\n// ── Abandoned-cart transport ────────────────────────────────────────────────\n//\n// Thin client for the-backend's cart-capture endpoints:\n// GET /config/cart → whether this tenant mirrors carts at all\n// POST /cart/snapshot → server-side mirror of the browser's cart\n// GET /cart/resume → trade an emailed token for the saved cart\n//\n// Sibling of ./funnel, and the same posture: fire-and-forget, fail-silent.\n// Cart capture is marketing instrumentation and must never break, block or\n// slow down shopping.\n\nexport interface CartCaptureConfig {\n /** Tenant opted in (features.cartRecovery); false = never send anything. */\n snapshot: boolean;\n}\n\nconst DISABLED: CartCaptureConfig = { snapshot: false };\n\nlet configPromise: Promise<CartCaptureConfig> | null = null;\n\n/**\n * The tenant's cart-capture posture, fetched once per page load and cached.\n * Fails closed: any error reads as \"off\".\n */\nexport function fetchCartConfig(): Promise<CartCaptureConfig> {\n if (!configPromise) {\n configPromise = (async () => {\n try {\n const cfg = getConfig();\n const res = await fetch(`${cfg.apiBase}/config/cart`, {\n headers: { 'X-Tenant-Key': cfg.tenantKey },\n });\n if (!res.ok) return DISABLED;\n const body = (await res.json()) as Partial<CartCaptureConfig>;\n return { snapshot: body.snapshot === true };\n } catch {\n return DISABLED;\n }\n })();\n }\n return configPromise;\n}\n\n/** Test seam: forget the cached config so the next fetch re-resolves. */\nexport function resetCartConfigCache(): void {\n configPromise = null;\n}\n\nconst cartIdKey = () => `${getConfig().storagePrefix}-cart-id`;\n\n/**\n * Stable id for this shopper's cart, minted on first use and kept in\n * localStorage — NOT sessionStorage like the survey session.\n *\n * A cart outlives the tab it was filled in: someone adds items, closes the\n * browser, comes back tomorrow and finds the cart still there (the cart store\n * itself persists the same way). The id has to survive with it, or every visit\n * would look like a brand-new abandoned cart and one shopper would accumulate\n * a row — and a reminder track — per session.\n */\nexport function cartId(): string {\n let id: string | null = null;\n try {\n id = localStorage.getItem(cartIdKey());\n } catch {\n /* storage unavailable (private mode) — fall through to an ephemeral id */\n }\n if (!id) {\n id =\n typeof crypto !== 'undefined' && 'randomUUID' in crypto\n ? crypto.randomUUID()\n : `${Date.now()}-${Math.random().toString(36).slice(2)}`;\n try {\n localStorage.setItem(cartIdKey(), id);\n } catch {\n /* ephemeral it is */\n }\n }\n return id;\n}\n\n/**\n * Continue the cart a recovery email points at, instead of the one this browser\n * happens to hold. Adopting the emailed id keeps the reminder history, the\n * email address and the eventual conversion on ONE row.\n */\nexport function adoptCartId(id: string): void {\n if (!id) return;\n try {\n localStorage.setItem(cartIdKey(), id);\n } catch {\n /* storage unavailable — the adoption is ephemeral */\n }\n}\n\n/**\n * Start a fresh cart id. Called after a purchase: the old id is stamped\n * converted server-side and must never be written to again, or a new cart\n * would inherit a bought cart's row (and its silence — converted rows are\n * never nudged).\n */\nexport function resetCartId(): void {\n try {\n localStorage.removeItem(cartIdKey());\n } catch {\n /* nothing to clear */\n }\n}\n\nexport interface CartSnapshotLine {\n productId: string;\n dosage?: string;\n quantity: number;\n}\n\n/**\n * Mirror the cart server-side. Identity only — the backend re-prices from the\n * catalog and ignores anything else we send, so there is no point shipping\n * names or prices.\n *\n * `keepalive` lets the request survive the page unload that so often IS the\n * abandonment.\n *\n * The bearer token, when there is one, is how a signed-in shopper's cart gets\n * their user id: the endpoint takes identity from the token and never from the\n * body (`optionalAuth`), so omitting it left every logged-in cart anonymous —\n * joinable only by whatever email happened to be attached.\n */\nexport function postCartSnapshot(params: {\n items: CartSnapshotLine[];\n promoCode?: string | null;\n email?: string | null;\n}): void {\n try {\n const cfg = getConfig();\n void fetch(`${cfg.apiBase}/cart/snapshot`, {\n method: 'POST',\n keepalive: true,\n headers: {\n 'Content-Type': 'application/json',\n 'X-Tenant-Key': cfg.tenantKey,\n ...captureAuthHeader(),\n },\n body: JSON.stringify({\n cartId: cartId(),\n items: params.items,\n promoCode: params.promoCode ?? null,\n ...(params.email ? { email: params.email } : {}),\n // Only when a survey session already exists: it lets the backend reuse\n // the address the pre-survey email gate collected, which is often the\n // only handle we have on an anonymous shopper.\n ...(peekFunnelSessionId() ? { sessionId: peekFunnelSessionId() } : {}),\n }),\n }).catch(() => {});\n } catch {\n /* not configured yet — drop */\n }\n}\n\n/** A resumed cart line, already re-priced against today's catalog. */\nexport interface ResumedCartLine {\n productId: string;\n dosage?: string;\n quantity: number;\n name: string;\n priceCents: number;\n salePriceCents: number | null;\n thumbnailUrl: string | null;\n isSubscription: boolean;\n apexDrugId: string | null;\n categories: string[];\n hideDoseLabel: boolean;\n}\n\nexport interface ResumedCart {\n cartId: string;\n items: ResumedCartLine[];\n /** Lines whose product has since been discontinued or deactivated. */\n unavailable: Array<{ productId: string; dosage?: string; quantity: number }>;\n promoCode: string | null;\n subtotalCents: number;\n}\n\n/**\n * Exchange an emailed recovery token for the saved cart.\n *\n * The token is the ONLY thing authorizing this read — the-backend verifies its\n * HMAC before returning anything. A 404 (expired, already bought, tampered, or\n * every product gone) resolves to null so the caller simply keeps whatever cart\n * this browser already had.\n */\nexport async function fetchResumedCart(token: string): Promise<ResumedCart | null> {\n try {\n const cfg = getConfig();\n const res = await fetch(`${cfg.apiBase}/cart/resume?token=${encodeURIComponent(token)}`, {\n headers: { 'X-Tenant-Key': cfg.tenantKey },\n });\n if (!res.ok) return null;\n const body = (await res.json()) as Partial<ResumedCart>;\n if (!body.cartId || !Array.isArray(body.items) || body.items.length === 0) return null;\n return {\n cartId: body.cartId,\n items: body.items,\n unavailable: Array.isArray(body.unavailable) ? body.unavailable : [],\n promoCode: body.promoCode ?? null,\n subtotalCents: typeof body.subtotalCents === 'number' ? body.subtotalCents : 0,\n };\n } catch {\n return null;\n }\n}\n\n/** Read the `?cart=` token from the current URL. */\nexport function readCartToken(): string | null {\n try {\n const token = new URLSearchParams(window.location.search).get('cart');\n return token && token.length > 0 ? token : null;\n } catch {\n return null;\n }\n}\n\n/**\n * Drop `?cart=` from the address bar once it's been redeemed, so a refresh (or\n * a shared URL) doesn't re-run the restore over a cart the shopper has since\n * edited. History is replaced, not pushed — the token was never a page.\n */\nexport function stripCartToken(): void {\n try {\n const url = new URL(window.location.href);\n if (!url.searchParams.has('cart')) return;\n url.searchParams.delete('cart');\n window.history.replaceState({}, '', url.toString());\n } catch {\n /* no history API — leaving the param is harmless */\n }\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../../src/api/promoRef.ts","../../src/api/cart.ts"],"names":[],"mappings":";;;;AAiBA,IAAM,MAAA,GAAS,EAAA,GAAK,EAAA,GAAK,EAAA,GAAK,EAAA,GAAK,GAAA;AAEnC,IAAM,UAAA,GAAa,MAAM,CAAA,EAAG,SAAA,GAAY,aAAa,CAAA,WAAA,CAAA;AAQ9C,SAAS,iBAAiB,IAAA,EAAoB;AACnD,EAAA,IAAI,OAAO,iBAAiB,WAAA,EAAa;AACzC,EAAA,MAAM,OAAA,GAAU,KAAK,IAAA,EAAK;AAC1B,EAAA,IAAI,CAAC,OAAA,EAAS;AACd,EAAA,IAAI;AACF,IAAA,MAAM,QAAqB,EAAE,IAAA,EAAM,SAAS,EAAA,EAAI,IAAA,CAAK,KA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F;AAOO,SAAS,cAAA,GAAuB;AACrC,EAAA,IAAI;AACF,IAAA,MAAM,GAAA,GAAM,IAAI,GAAA,CAAI,MAAA,CAAO,SAAS,IAAI,CAAA;AACxC,IAAA,IAAI,CAAC,GAAA,CAAI,YAAA,CAAa,GAAA,CAAI,MAAM,CAAA,EAAG;AACnC,IAAA,GAAA,CAAI,YAAA,CAAa,OAAO,MAAM,CAAA;AAC9B,IAAA,MAAA,CAAO,QAAQ,YAAA,CAAa,IAAI,EAAA,EAAI,GAAA,CAAI,UAAU,CAAA;AAAA,EACpD,CAAA,CAAA,MAAQ;AAAA,EAER;AACF","file":"WTHAR2P2.js","sourcesContent":["// ── First-party promo-code capture from a `?promo=` landing ──────────\n//\n// A campaign link can carry its own code (`/?promo=TRUE10`) so the member does\n// not have to type it. Stashed in the storefront's own localStorage and read\n// back when the intake reaches the promo field.\n//\n// Mirrors `affiliateRef` deliberately — same storage shape, same 30-day window —\n// but is a SEPARATE concern: an affiliate ref attributes a sale to a partner and\n// is validated server-side at checkout, while this only pre-fills an input the\n// member still has to submit.\n\nimport { getConfig } from '../config';\n\n// Matches the affiliate-ref window. A stash that outlives the promo it carries\n// is not a correctness problem — the code is re-validated before it is used,\n// and silently dropped if it has expired — but there is no reason to keep one\n// around longer than a campaign plausibly runs.\nconst TTL_MS = 30 * 24 * 60 * 60 * 1000;\n\nconst storageKey = () => `${getConfig().storagePrefix}-promo-code`;\n\ninterface StoredPromo {\n code: string;\n ts: number;\n}\n\n/** Persist a promo code from a `?promo=` landing. No-op for empty input. */\nexport function capturePromoCode(code: string): void {\n if (typeof localStorage === 'undefined') return;\n const trimmed = code.trim();\n if (!trimmed) return;\n try {\n const entry: StoredPromo = { code: trimmed, ts: Date.now() };\n localStorage.setItem(storageKey(), JSON.stringify(entry));\n } catch {\n // storage unavailable (private mode / quota) — non-fatal\n }\n}\n\n/**\n * Read the stored promo code, or null if absent or past the storage window.\n *\n * Being within the window says nothing about whether the CODE is still valid —\n * a campaign can end while the stash is fresh. The caller re-validates against\n * the server before showing it to anyone.\n */\nexport function readPromoCode(): string | null {\n if (typeof localStorage === 'undefined') return null;\n try {\n const raw = localStorage.getItem(storageKey());\n if (!raw) return null;\n const parsed = JSON.parse(raw) as Partial<StoredPromo>;\n if (!parsed.code || typeof parsed.ts !== 'number') return null;\n if (Date.now() - parsed.ts > TTL_MS) {\n localStorage.removeItem(storageKey());\n return null;\n }\n return parsed.code;\n } catch {\n return null;\n }\n}\n\n/** Drop the stored promo code. */\nexport function clearPromoCode(): void {\n if (typeof localStorage === 'undefined') return;\n try {\n localStorage.removeItem(storageKey());\n } catch {\n // non-fatal\n }\n}\n","import { getConfig } from '../config';\nimport { captureAuthHeader, peekFunnelSessionId } from './funnel';\n\n// ── Abandoned-cart transport ────────────────────────────────────────────────\n//\n// Thin client for the-backend's cart-capture endpoints:\n// GET /config/cart → whether this tenant mirrors carts at all\n// POST /cart/snapshot → server-side mirror of the browser's cart\n// GET /cart/resume → trade an emailed token for the saved cart\n//\n// Sibling of ./funnel, and the same posture: fire-and-forget, fail-silent.\n// Cart capture is marketing instrumentation and must never break, block or\n// slow down shopping.\n\nexport interface CartCaptureConfig {\n /** Tenant opted in (features.cartRecovery); false = never send anything. */\n snapshot: boolean;\n}\n\nconst DISABLED: CartCaptureConfig = { snapshot: false };\n\nlet configPromise: Promise<CartCaptureConfig> | null = null;\n\n/**\n * The tenant's cart-capture posture, fetched once per page load and cached.\n * Fails closed: any error reads as \"off\".\n */\nexport function fetchCartConfig(): Promise<CartCaptureConfig> {\n if (!configPromise) {\n configPromise = (async () => {\n try {\n const cfg = getConfig();\n const res = await fetch(`${cfg.apiBase}/config/cart`, {\n headers: { 'X-Tenant-Key': cfg.tenantKey },\n });\n if (!res.ok) return DISABLED;\n const body = (await res.json()) as Partial<CartCaptureConfig>;\n return { snapshot: body.snapshot === true };\n } catch {\n return DISABLED;\n }\n })();\n }\n return configPromise;\n}\n\n/** Test seam: forget the cached config so the next fetch re-resolves. */\nexport function resetCartConfigCache(): void {\n configPromise = null;\n}\n\nconst cartIdKey = () => `${getConfig().storagePrefix}-cart-id`;\n\n/**\n * Stable id for this shopper's cart, minted on first use and kept in\n * localStorage — NOT sessionStorage like the survey session.\n *\n * A cart outlives the tab it was filled in: someone adds items, closes the\n * browser, comes back tomorrow and finds the cart still there (the cart store\n * itself persists the same way). The id has to survive with it, or every visit\n * would look like a brand-new abandoned cart and one shopper would accumulate\n * a row — and a reminder track — per session.\n */\nexport function cartId(): string {\n let id: string | null = null;\n try {\n id = localStorage.getItem(cartIdKey());\n } catch {\n /* storage unavailable (private mode) — fall through to an ephemeral id */\n }\n if (!id) {\n id =\n typeof crypto !== 'undefined' && 'randomUUID' in crypto\n ? crypto.randomUUID()\n : `${Date.now()}-${Math.random().toString(36).slice(2)}`;\n try {\n localStorage.setItem(cartIdKey(), id);\n } catch {\n /* ephemeral it is */\n }\n }\n return id;\n}\n\n/**\n * Continue the cart a recovery email points at, instead of the one this browser\n * happens to hold. Adopting the emailed id keeps the reminder history, the\n * email address and the eventual conversion on ONE row.\n */\nexport function adoptCartId(id: string): void {\n if (!id) return;\n try {\n localStorage.setItem(cartIdKey(), id);\n } catch {\n /* storage unavailable — the adoption is ephemeral */\n }\n}\n\n/**\n * Start a fresh cart id. Called after a purchase: the old id is stamped\n * converted server-side and must never be written to again, or a new cart\n * would inherit a bought cart's row (and its silence — converted rows are\n * never nudged).\n */\nexport function resetCartId(): void {\n try {\n localStorage.removeItem(cartIdKey());\n } catch {\n /* nothing to clear */\n }\n}\n\nexport interface CartSnapshotLine {\n productId: string;\n dosage?: string;\n quantity: number;\n}\n\n/**\n * Mirror the cart server-side. Identity only — the backend re-prices from the\n * catalog and ignores anything else we send, so there is no point shipping\n * names or prices.\n *\n * `keepalive` lets the request survive the page unload that so often IS the\n * abandonment.\n *\n * The bearer token, when there is one, is how a signed-in shopper's cart gets\n * their user id: the endpoint takes identity from the token and never from the\n * body (`optionalAuth`), so omitting it left every logged-in cart anonymous —\n * joinable only by whatever email happened to be attached.\n */\nexport function postCartSnapshot(params: {\n items: CartSnapshotLine[];\n promoCode?: string | null;\n email?: string | null;\n}): void {\n try {\n const cfg = getConfig();\n void fetch(`${cfg.apiBase}/cart/snapshot`, {\n method: 'POST',\n keepalive: true,\n headers: {\n 'Content-Type': 'application/json',\n 'X-Tenant-Key': cfg.tenantKey,\n ...captureAuthHeader(),\n },\n body: JSON.stringify({\n cartId: cartId(),\n items: params.items,\n promoCode: params.promoCode ?? null,\n ...(params.email ? { email: params.email } : {}),\n // Only when a survey session already exists: it lets the backend reuse\n // the address the pre-survey email gate collected, which is often the\n // only handle we have on an anonymous shopper.\n ...(peekFunnelSessionId() ? { sessionId: peekFunnelSessionId() } : {}),\n }),\n }).catch(() => {});\n } catch {\n /* not configured yet — drop */\n }\n}\n\n/** A resumed cart line, already re-priced against today's catalog. */\nexport interface ResumedCartLine {\n productId: string;\n dosage?: string;\n quantity: number;\n name: string;\n priceCents: number;\n salePriceCents: number | null;\n thumbnailUrl: string | null;\n isSubscription: boolean;\n apexDrugId: string | null;\n categories: string[];\n hideDoseLabel: boolean;\n}\n\nexport interface ResumedCart {\n cartId: string;\n items: ResumedCartLine[];\n /** Lines whose product has since been discontinued or deactivated. */\n unavailable: Array<{ productId: string; dosage?: string; quantity: number }>;\n promoCode: string | null;\n subtotalCents: number;\n}\n\n/**\n * Exchange an emailed recovery token for the saved cart.\n *\n * The token is the ONLY thing authorizing this read — the-backend verifies its\n * HMAC before returning anything. A 404 (expired, already bought, tampered, or\n * every product gone) resolves to null so the caller simply keeps whatever cart\n * this browser already had.\n */\nexport async function fetchResumedCart(token: string): Promise<ResumedCart | null> {\n try {\n const cfg = getConfig();\n const res = await fetch(`${cfg.apiBase}/cart/resume?token=${encodeURIComponent(token)}`, {\n headers: { 'X-Tenant-Key': cfg.tenantKey },\n });\n if (!res.ok) return null;\n const body = (await res.json()) as Partial<ResumedCart>;\n if (!body.cartId || !Array.isArray(body.items) || body.items.length === 0) return null;\n return {\n cartId: body.cartId,\n items: body.items,\n unavailable: Array.isArray(body.unavailable) ? body.unavailable : [],\n promoCode: body.promoCode ?? null,\n subtotalCents: typeof body.subtotalCents === 'number' ? body.subtotalCents : 0,\n };\n } catch {\n return null;\n }\n}\n\n/** Read the `?cart=` token from the current URL. */\nexport function readCartToken(): string | null {\n try {\n const token = new URLSearchParams(window.location.search).get('cart');\n return token && token.length > 0 ? token : null;\n } catch {\n return null;\n }\n}\n\n/**\n * Drop `?cart=` from the address bar once it's been redeemed, so a refresh (or\n * a shared URL) doesn't re-run the restore over a cart the shopper has since\n * edited. History is replaced, not pushed — the token was never a page.\n */\nexport function stripCartToken(): void {\n try {\n const url = new URL(window.location.href);\n if (!url.searchParams.has('cart')) return;\n url.searchParams.delete('cart');\n window.history.replaceState({}, '', url.toString());\n } catch {\n /* no history API — leaving the param is harmless */\n }\n}\n"]}
|
|
@@ -998,6 +998,14 @@ var adminApi = {
|
|
|
998
998
|
updateSubscription(id, body) {
|
|
999
999
|
return patch(`/admin/subscriptions/${id}`, body);
|
|
1000
1000
|
},
|
|
1001
|
+
/**
|
|
1002
|
+
* Move a subscription's next refill and its check-in while unopened. Never
|
|
1003
|
+
* touches billing (use `updateSubscription` for that). 409 once the refill is
|
|
1004
|
+
* ordered or before the last order has gone out (`fillSchedule.retime.reason`).
|
|
1005
|
+
*/
|
|
1006
|
+
retimeNextFill(subscriptionId, body) {
|
|
1007
|
+
return post(`/admin/subscriptions/${subscriptionId}/retime-fill`, body);
|
|
1008
|
+
},
|
|
1001
1009
|
pauseSubscription(id) {
|
|
1002
1010
|
return post(`/admin/subscriptions/${id}/pause`, {});
|
|
1003
1011
|
},
|
|
@@ -1597,4 +1605,4 @@ export {
|
|
|
1597
1605
|
clearAffiliateTokens,
|
|
1598
1606
|
affiliatePortalApi
|
|
1599
1607
|
};
|
|
1600
|
-
//# sourceMappingURL=
|
|
1608
|
+
//# sourceMappingURL=X6WJQ47H.jsx.map
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
setAffiliateTokens,
|
|
13
13
|
setTokens,
|
|
14
14
|
usersApi
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./X6WJQ47H.jsx";
|
|
16
16
|
import {
|
|
17
17
|
getConfig,
|
|
18
18
|
onConfigured
|
|
@@ -414,4 +414,4 @@ export {
|
|
|
414
414
|
affiliateAuth_default,
|
|
415
415
|
medication_default
|
|
416
416
|
};
|
|
417
|
-
//# sourceMappingURL=
|
|
417
|
+
//# sourceMappingURL=ZWAZNB4Y.jsx.map
|
|
@@ -1439,6 +1439,18 @@ interface AdminFillSchedule {
|
|
|
1439
1439
|
/** Whole days from the next fill to the next charge; negative when the charge comes first. */
|
|
1440
1440
|
chargeOffsetDays: number | null;
|
|
1441
1441
|
needsReviewAt: string | null;
|
|
1442
|
+
/** When an admin last re-timed this fill by hand. Absent on older backends. */
|
|
1443
|
+
retimedAt?: string | null;
|
|
1444
|
+
/**
|
|
1445
|
+
* Whether the next fill can be re-timed now, and why not. Absent on backends
|
|
1446
|
+
* without the re-time endpoint — offer no re-time action then.
|
|
1447
|
+
*/
|
|
1448
|
+
retime?: {
|
|
1449
|
+
allowed: boolean;
|
|
1450
|
+
reason: string | null;
|
|
1451
|
+
/** Days the check-in opens before the fill. */
|
|
1452
|
+
checkInLeadDays: number;
|
|
1453
|
+
};
|
|
1442
1454
|
notices: Array<{
|
|
1443
1455
|
code: 'awaiting_shipment' | 'pharmacy_send_passed' | 'based_on_send' | 'anchor_not_recorded' | 'fill_date_passed' | 'needs_review' | 'no_live_cycle' | string;
|
|
1444
1456
|
message: string;
|
|
@@ -1672,6 +1684,24 @@ interface AdminSubscriptionPatch {
|
|
|
1672
1684
|
currentPeriodStart?: string;
|
|
1673
1685
|
currentPeriodEnd?: string;
|
|
1674
1686
|
}
|
|
1687
|
+
interface AdminRetimeFillBody {
|
|
1688
|
+
/** New fill date, YYYY-MM-DD; tomorrow or later, within 180 days. */
|
|
1689
|
+
fillDate: string;
|
|
1690
|
+
}
|
|
1691
|
+
interface AdminRetimeSnapshot {
|
|
1692
|
+
renewalId: string;
|
|
1693
|
+
status: string;
|
|
1694
|
+
nextFillDate: string | null;
|
|
1695
|
+
checkInAt: string | null;
|
|
1696
|
+
}
|
|
1697
|
+
interface AdminRetimeFillResult {
|
|
1698
|
+
before: AdminRetimeSnapshot;
|
|
1699
|
+
after: AdminRetimeSnapshot;
|
|
1700
|
+
/** Days the fill moved; negative is earlier. */
|
|
1701
|
+
shiftDays: number;
|
|
1702
|
+
fillSchedule: AdminFillSchedule | null;
|
|
1703
|
+
warnings: string[];
|
|
1704
|
+
}
|
|
1675
1705
|
interface AdminSubscriptionWriteResult {
|
|
1676
1706
|
subscription: AdminSubscriptionDetail;
|
|
1677
1707
|
before: AdminSubscriptionDetail;
|
|
@@ -2200,6 +2230,12 @@ declare const adminApi: {
|
|
|
2200
2230
|
* for gateway-billed subscriptions — their schedule lives at Authorize.Net.
|
|
2201
2231
|
*/
|
|
2202
2232
|
updateSubscription(id: string, body: AdminSubscriptionPatch): Promise<AdminSubscriptionWriteResult>;
|
|
2233
|
+
/**
|
|
2234
|
+
* Move a subscription's next refill and its check-in while unopened. Never
|
|
2235
|
+
* touches billing (use `updateSubscription` for that). 409 once the refill is
|
|
2236
|
+
* ordered or before the last order has gone out (`fillSchedule.retime.reason`).
|
|
2237
|
+
*/
|
|
2238
|
+
retimeNextFill(subscriptionId: string, body: AdminRetimeFillBody): Promise<AdminRetimeFillResult>;
|
|
2203
2239
|
pauseSubscription(id: string): Promise<AdminSubscriptionWriteResult>;
|
|
2204
2240
|
resumeSubscription(id: string): Promise<AdminSubscriptionWriteResult>;
|
|
2205
2241
|
/** Close a pending/indeterminate billing attempt so the engine can move on. */
|
|
@@ -2988,4 +3024,4 @@ declare const affiliatePortalApi: {
|
|
|
2988
3024
|
track(refCode: string, landingPage?: string): Promise<AffiliateTrackResponse>;
|
|
2989
3025
|
};
|
|
2990
3026
|
|
|
2991
|
-
export { type AdminRecurringPricePoint as $, ADMIN_ROLES as A, type AdminCustomerSupport as B, type AdminCustomerSupportThread as C, type AdminDashboardStats as D, type AdminFillAnchor as E, type AdminFillSchedule as F, type AdminInviteResult as G, type AdminLifecycle as H, type AdminLifecycleBucket as I, type AdminListParams as J, type AdminMe as K, type AdminOffer as L, type AdminOfferBase as M, type AdminOfferGrant as N, type AdminOfferGrantBase as O, type AdminOfferInput as P, type AdminOrderSummary as Q, type AdminOrphanReason as R, type AdminOrphanedDosePrice as S, type AdminPayment as T, type AdminPaymentDetail as U, type AdminProduct as V, type AdminProductOverlayField as W, type AdminProductPharmacy as X, type AdminProductStrength as Y, type AdminPromoCode as Z, type AdminPromoCodeInput as _, type AddPharmacyBody as a, type
|
|
3027
|
+
export { type AdminRecurringPricePoint as $, ADMIN_ROLES as A, type AdminCustomerSupport as B, type AdminCustomerSupportThread as C, type AdminDashboardStats as D, type AdminFillAnchor as E, type AdminFillSchedule as F, type AdminInviteResult as G, type AdminLifecycle as H, type AdminLifecycleBucket as I, type AdminListParams as J, type AdminMe as K, type AdminOffer as L, type AdminOfferBase as M, type AdminOfferGrant as N, type AdminOfferGrantBase as O, type AdminOfferInput as P, type AdminOrderSummary as Q, type AdminOrphanReason as R, type AdminOrphanedDosePrice as S, type AdminPayment as T, type AdminPaymentDetail as U, type AdminProduct as V, type AdminProductOverlayField as W, type AdminProductPharmacy as X, type AdminProductStrength as Y, type AdminPromoCode as Z, type AdminPromoCodeInput as _, type AddPharmacyBody as a, type CatalogDoseSuggestion as a$, type AdminRecurringRevenue as a0, type AdminRefundResult as a1, type AdminRetimeFillBody as a2, type AdminRetimeFillResult as a3, type AdminRetimeSnapshot as a4, type AdminRole as a5, type AdminSale as a6, type AdminSaleInput as a7, type AdminScheduledRefund as a8, type AdminScheduledRefundProblem as a9, type AffiliateTrackResponse as aA, ApiError as aB, type ApiResponse as aC, type AttributionMethod as aD, type AuthTokens as aE, type BillingReminderSettings as aF, type CatalogAvailabilityItem as aG, type CatalogAvailabilityReason as aH, type CatalogAvailabilityResult as aI, type CatalogClassification as aJ, type CatalogConversionChoice as aK, type CatalogConversionCommitResult as aL, type CatalogConversionDose as aM, type CatalogConversionDoseMatch as aN, type CatalogConversionFinding as aO, type CatalogConversionPointers as aP, type CatalogConversionPrepareResult as aQ, type CatalogConversionPreview as aR, type CatalogConversionRun as aS, type CatalogConversionSource as aT, type CatalogConversionStage as aU, type CatalogConversionTarget as aV, type CatalogConversionUndoOptions as aW, type CatalogConversionUndoResult as aX, type CatalogDose as aY, type CatalogDoseInput as aZ, type CatalogDoseModel as a_, type AdminSubscription as aa, type AdminSubscriptionDetail as ab, type AdminSubscriptionPatch as ac, type AdminSubscriptionWriteResult as ad, type AdminSupportCustomer as ae, type AdminSupportStats as af, type AdminSupportThread as ag, type AdminTeamInvite as ah, type AdminTeamMember as ai, type AdminWebhookEvent as aj, type Affiliate as ak, type AffiliateAuthTokens as al, type AffiliateClickRecord as am, type AffiliateConversion as an, type AffiliateDashboardLinks as ao, type AffiliateDashboardProfile as ap, type AffiliateDashboardStats as aq, type AffiliateDownlineMember as ar, type AffiliateEarningsBreakdown as as, type AffiliatePaymentMethod as at, type AffiliateProgram as au, type AffiliateRegisterInput as av, type AffiliateRegisterResponse as aw, type AffiliateSession as ax, type AffiliateStatsResponse as ay, type AffiliateStatus as az, type AddPharmacyDoseMatch as b, type SupportChannel as b$, type CatalogDoseSuggestions as b0, type CatalogEquivalentSuggestions as b1, type CatalogFulfillment as b2, type CatalogFulfillmentInput as b3, type CatalogItem as b4, type CatalogItemInput as b5, type CatalogMappableDrug as b6, type CatalogMatrixCell as b7, type CatalogProduct as b8, type CatalogReadiness as b9, type MemberSurveyTranscriptSection as bA, type MembersMeResponse as bB, type OfferGrantState as bC, type Order as bD, type OrderItemInput as bE, type PaginationParams as bF, type PaymentCallbackPayload as bG, type PaymentInitiatePayload as bH, type PaymentType as bI, type PendingRenewalSurvey as bJ, type Placeholder as bK, type PlaceholderKind as bL, type ProductSaleSummary as bM, type PromoValidationResponse as bN, type PublicCategory as bO, type RegisterAndSubscribePayload as bP, type RegisterPayload as bQ, type RenewalStatus as bR, SUPPORT_ATTACHMENT_MAX_BYTES as bS, SUPPORT_ATTACHMENT_MIME_TYPES as bT, type SelectDrugPayload as bU, type SendMessagePayload as bV, type SendToPharmacyPayload as bW, type SubscriptionPreview as bX, type SubscriptionPreviewLine as bY, type SubscriptionPreviewPayload as bZ, type SupportAttachment as b_, type CategoryMetadata as ba, type CheckoutAddress as bb, type CheckoutPayload as bc, type CheckoutResult as bd, type CommissionConfig as be, type CommissionStatus as bf, type CompleteSurveyPayload as bg, type CreateAffiliatePayload as bh, type CreateAffiliateProgramPayload as bi, type CreateOrderPayload as bj, type CreateRequestPayload as bk, type CreateSubscriptionPayload as bl, type CustomTemplate as bm, type CustomTemplateInput as bn, type CustomerDiscountConfig as bo, type DeliveryInfo as bp, type DiscountType as bq, type EmailNotificationSettings as br, type EmailTemplatesMap as bs, type LoginPayload as bt, type MemberOffer as bu, type MemberPrescriptionRequest as bv, type MemberSurveyMode as bw, type MemberSurveyResponseSummary as bx, type MemberSurveyTranscript as by, type MemberSurveyTranscriptItem as bz, type AddPharmacyDoseOption as c, type SupportChannelSettings as c0, type SupportMessage as c1, type SupportRealtimeToken as c2, type SupportThread as c3, type SupportThreadCategory as c4, type SupportThreadStatus as c5, type SurveySubmitPayload as c6, type TemplatePlaceholdersMap as c7, type TemplateText as c8, type TenantFeature as c9, newIdempotencyKey as cA, offersApi as cB, onTokensCleared as cC, ordersApi as cD, paymentsApi as cE, productsApi as cF, promoCodesApi as cG, setAffiliateTokens as cH, setTokens as cI, subscriptionsApi as cJ, supportApi as cK, usersApi as cL, type TenantFeatureAccess as ca, type TokenTrackName as cb, type UpdateAffiliatePayload as cc, type UpdateAffiliateProgramPayload as cd, type UpdatePaymentMethodPayload as ce, type UpdateProfilePayload as cf, type User as cg, addressesApi as ch, adminAffiliatesApi as ci, adminApi as cj, adminCatalogApi as ck, adminCatalogConversionApi as cl, adminProductPharmaciesApi as cm, affiliateAuthStorageKey as cn, affiliatePortalApi as co, apexApi as cp, apiFetch as cq, authApi as cr, authStorageKey as cs, catalogApi as ct, clearAffiliateTokens as cu, clearTokens as cv, getAffiliateTokens as cw, getTokens as cx, membersApi as cy, messagesApi as cz, type AddPharmacyFinding as d, type AddPharmacyMatchQuestion as e, type AddPharmacyMatchSource as f, type AddPharmacyPlan as g, type AddPharmacyPrice as h, type AddPharmacyResult as i, type AddPharmacyStrengthAfter as j, type AddPharmacyStrengthBefore as k, type AddressVerifyResult as l, type AdminApexDrug as m, type AdminApexItemStatus as n, type AdminBillingAttempt as o, type AdminCategory as p, type AdminCategoryInput as q, type AdminCategoryUpdate as r, type AdminCustomer as s, type AdminCustomerFacts as t, type AdminCustomerFunnel as u, type AdminCustomerListParams as v, type AdminCustomerOverview as w, type AdminCustomerProfile as x, type AdminCustomerRequest as y, type AdminCustomerRow as z };
|
package/dist/flows/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Accessor, Resource } from 'solid-js';
|
|
2
|
-
import { l as AddressVerifyResult,
|
|
2
|
+
import { l as AddressVerifyResult, bb as CheckoutAddress, aI as CatalogAvailabilityResult, cg as User, bp as DeliveryInfo, bR as RenewalStatus, bJ as PendingRenewalSurvey, I as AdminLifecycleBucket, w as AdminCustomerOverview, ab as AdminSubscriptionDetail, y as AdminCustomerRequest, c4 as SupportThreadCategory, b$ as SupportChannel, b8 as CatalogProduct, an as AffiliateConversion, ar as AffiliateDownlineMember, ao as AffiliateDashboardLinks, aq as AffiliateDashboardStats, bN as PromoValidationResponse, bu as MemberOffer, aJ as CatalogClassification, a_ as CatalogDoseModel, S as AdminOrphanedDosePrice, V as AdminProduct, b4 as CatalogItem, a$ as CatalogDoseSuggestion, b6 as CatalogMappableDrug, b1 as CatalogEquivalentSuggestions, b9 as CatalogReadiness, aX as CatalogConversionUndoResult, aR as CatalogConversionPreview, aN as CatalogConversionDoseMatch, aT as CatalogConversionSource, aM as CatalogConversionDose, aW as CatalogConversionUndoOptions, aL as CatalogConversionCommitResult, aO as CatalogConversionFinding, aK as CatalogConversionChoice, g as AddPharmacyPlan, i as AddPharmacyResult, f as AddPharmacyMatchSource, a as AddPharmacyBody, d as AddPharmacyFinding } from '../client-CMbSYUam.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';
|
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, 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/
|
|
4
|
-
import '../chunk/
|
|
5
|
-
import '../chunk/
|
|
6
|
-
import '../chunk/
|
|
1
|
+
export { OFFER_BEATS_PROMO_NOTICE, restoreCartFromLink, startCartCapture, useSubscriptionIntakeFlow, validateResumedPromo } from '../chunk/CDRUVUTJ.js';
|
|
2
|
+
import '../chunk/WTHAR2P2.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/VGF2LLAD.js';
|
|
4
|
+
import '../chunk/OOMMZESR.js';
|
|
5
|
+
import '../chunk/GJSE37VN.js';
|
|
6
|
+
import '../chunk/HEQLEGHI.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/LA6F37YV.jsx";
|
|
8
|
+
import "../chunk/33BDC6MT.jsx";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_COLOR_PALETTE,
|
|
11
11
|
LIFECYCLE_BUCKETS,
|
|
@@ -133,10 +133,10 @@ import {
|
|
|
133
133
|
useUpdatePaymentMethodFlow,
|
|
134
134
|
validateAddress,
|
|
135
135
|
visibleWarnings
|
|
136
|
-
} from "../chunk/
|
|
137
|
-
import "../chunk/
|
|
138
|
-
import "../chunk/
|
|
139
|
-
import "../chunk/
|
|
136
|
+
} from "../chunk/OZHJ5IGL.jsx";
|
|
137
|
+
import "../chunk/EED3KNR7.jsx";
|
|
138
|
+
import "../chunk/ZWAZNB4Y.jsx";
|
|
139
|
+
import "../chunk/X6WJQ47H.jsx";
|
|
140
140
|
import "../chunk/QVZ7BRNO.jsx";
|
|
141
141
|
export {
|
|
142
142
|
DEFAULT_COLOR_PALETTE,
|
package/dist/index/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 ADMIN_ROLES, a as AddPharmacyBody, b as AddPharmacyDoseMatch, c as AddPharmacyDoseOption, d as AddPharmacyFinding, e as AddPharmacyMatchQuestion, f as AddPharmacyMatchSource, g as AddPharmacyPlan, h as AddPharmacyPrice, i as AddPharmacyResult, j as AddPharmacyStrengthAfter, k as AddPharmacyStrengthBefore, l as AddressVerifyResult, m as AdminApexDrug, n as AdminApexItemStatus, o as AdminBillingAttempt, p as AdminCategory, q as AdminCategoryInput, r as AdminCategoryUpdate, s as AdminCustomer, t as AdminCustomerFacts, u as AdminCustomerFunnel, v as AdminCustomerListParams, w as AdminCustomerOverview, x as AdminCustomerProfile, y as AdminCustomerRequest, z as AdminCustomerRow, B as AdminCustomerSupport, C as AdminCustomerSupportThread, D as AdminDashboardStats, E as AdminFillAnchor, F as AdminFillSchedule, G as AdminInviteResult, H as AdminLifecycle, I as AdminLifecycleBucket, J as AdminListParams, K as AdminMe, L as AdminOffer, M as AdminOfferBase, N as AdminOfferGrant, O as AdminOfferGrantBase, P as AdminOfferInput, Q as AdminOrderSummary, R as AdminOrphanReason, S as AdminOrphanedDosePrice, T as AdminPayment, U as AdminPaymentDetail, V as AdminProduct, W as AdminProductOverlayField, X as AdminProductPharmacy, Y as AdminProductStrength, Z as AdminPromoCode, _ as AdminPromoCodeInput, $ as AdminRecurringPricePoint, a0 as AdminRecurringRevenue, a1 as AdminRefundResult, a2 as
|
|
4
|
+
export { A as ADMIN_ROLES, a as AddPharmacyBody, b as AddPharmacyDoseMatch, c as AddPharmacyDoseOption, d as AddPharmacyFinding, e as AddPharmacyMatchQuestion, f as AddPharmacyMatchSource, g as AddPharmacyPlan, h as AddPharmacyPrice, i as AddPharmacyResult, j as AddPharmacyStrengthAfter, k as AddPharmacyStrengthBefore, l as AddressVerifyResult, m as AdminApexDrug, n as AdminApexItemStatus, o as AdminBillingAttempt, p as AdminCategory, q as AdminCategoryInput, r as AdminCategoryUpdate, s as AdminCustomer, t as AdminCustomerFacts, u as AdminCustomerFunnel, v as AdminCustomerListParams, w as AdminCustomerOverview, x as AdminCustomerProfile, y as AdminCustomerRequest, z as AdminCustomerRow, B as AdminCustomerSupport, C as AdminCustomerSupportThread, D as AdminDashboardStats, E as AdminFillAnchor, F as AdminFillSchedule, G as AdminInviteResult, H as AdminLifecycle, I as AdminLifecycleBucket, J as AdminListParams, K as AdminMe, L as AdminOffer, M as AdminOfferBase, N as AdminOfferGrant, O as AdminOfferGrantBase, P as AdminOfferInput, Q as AdminOrderSummary, R as AdminOrphanReason, S as AdminOrphanedDosePrice, T as AdminPayment, U as AdminPaymentDetail, V as AdminProduct, W as AdminProductOverlayField, X as AdminProductPharmacy, Y as AdminProductStrength, Z as AdminPromoCode, _ as AdminPromoCodeInput, $ as AdminRecurringPricePoint, a0 as AdminRecurringRevenue, a1 as AdminRefundResult, a2 as AdminRetimeFillBody, a3 as AdminRetimeFillResult, a4 as AdminRetimeSnapshot, a5 as AdminRole, a6 as AdminSale, a7 as AdminSaleInput, a8 as AdminScheduledRefund, a9 as AdminScheduledRefundProblem, aa as AdminSubscription, ab as AdminSubscriptionDetail, ac as AdminSubscriptionPatch, ad as AdminSubscriptionWriteResult, ae as AdminSupportCustomer, af as AdminSupportStats, ag as AdminSupportThread, ah as AdminTeamInvite, ai as AdminTeamMember, aj as AdminWebhookEvent, ak as Affiliate, al as AffiliateAuthTokens, am as AffiliateClickRecord, an as AffiliateConversion, ao as AffiliateDashboardLinks, ap as AffiliateDashboardProfile, aq as AffiliateDashboardStats, ar as AffiliateDownlineMember, as as AffiliateEarningsBreakdown, at as AffiliatePaymentMethod, au as AffiliateProgram, av as AffiliateRegisterInput, aw as AffiliateRegisterResponse, ax as AffiliateSession, ay as AffiliateStatsResponse, az as AffiliateStatus, aA as AffiliateTrackResponse, aB as ApiError, aC as ApiResponse, aD as AttributionMethod, aE as AuthTokens, aF as BillingReminderSettings, aG as CatalogAvailabilityItem, aH as CatalogAvailabilityReason, aI as CatalogAvailabilityResult, aJ as CatalogClassification, aK as CatalogConversionChoice, aL as CatalogConversionCommitResult, aM as CatalogConversionDose, aN as CatalogConversionDoseMatch, aO as CatalogConversionFinding, aP as CatalogConversionPointers, aQ as CatalogConversionPrepareResult, aR as CatalogConversionPreview, aS as CatalogConversionRun, aT as CatalogConversionSource, aU as CatalogConversionStage, aV as CatalogConversionTarget, aW as CatalogConversionUndoOptions, aX as CatalogConversionUndoResult, aY as CatalogDose, aZ as CatalogDoseInput, a_ as CatalogDoseModel, a$ as CatalogDoseSuggestion, b0 as CatalogDoseSuggestions, b1 as CatalogEquivalentSuggestions, b2 as CatalogFulfillment, b3 as CatalogFulfillmentInput, b4 as CatalogItem, b5 as CatalogItemInput, b6 as CatalogMappableDrug, b7 as CatalogMatrixCell, b8 as CatalogProduct, b9 as CatalogReadiness, ba as CategoryMetadata, bb as CheckoutAddress, bc as CheckoutPayload, bd as CheckoutResult, be as CommissionConfig, bf as CommissionStatus, bg as CompleteSurveyPayload, bh as CreateAffiliatePayload, bi as CreateAffiliateProgramPayload, bj as CreateOrderPayload, bk as CreateRequestPayload, bl as CreateSubscriptionPayload, bm as CustomTemplate, bn as CustomTemplateInput, bo as CustomerDiscountConfig, bp as DeliveryInfo, bq as DiscountType, br as EmailNotificationSettings, bs as EmailTemplatesMap, bt as LoginPayload, bu as MemberOffer, bv as MemberPrescriptionRequest, bw as MemberSurveyMode, bx as MemberSurveyResponseSummary, by as MemberSurveyTranscript, bz as MemberSurveyTranscriptItem, bA as MemberSurveyTranscriptSection, bB as MembersMeResponse, bC as OfferGrantState, bD as Order, bE as OrderItemInput, bF as PaginationParams, bG as PaymentCallbackPayload, bH as PaymentInitiatePayload, bI as PaymentType, bJ as PendingRenewalSurvey, bK as Placeholder, bL as PlaceholderKind, bM as ProductSaleSummary, bN as PromoValidationResponse, bO as PublicCategory, bP as RegisterAndSubscribePayload, bQ as RegisterPayload, bR as RenewalStatus, bS as SUPPORT_ATTACHMENT_MAX_BYTES, bT as SUPPORT_ATTACHMENT_MIME_TYPES, bU as SelectDrugPayload, bV as SendMessagePayload, bW as SendToPharmacyPayload, bX as SubscriptionPreview, bY as SubscriptionPreviewLine, bZ as SubscriptionPreviewPayload, b_ as SupportAttachment, b$ as SupportChannel, c0 as SupportChannelSettings, c1 as SupportMessage, c2 as SupportRealtimeToken, c3 as SupportThread, c4 as SupportThreadCategory, c5 as SupportThreadStatus, c6 as SurveySubmitPayload, c7 as TemplatePlaceholdersMap, c8 as TemplateText, c9 as TenantFeature, ca as TenantFeatureAccess, cb as TokenTrackName, cc as UpdateAffiliatePayload, cd as UpdateAffiliateProgramPayload, ce as UpdatePaymentMethodPayload, cf as UpdateProfilePayload, cg as User, ch as addressesApi, ci as adminAffiliatesApi, cj as adminApi, ck as adminCatalogApi, cl as adminCatalogConversionApi, cm as adminProductPharmaciesApi, cn as affiliateAuthStorageKey, co as affiliatePortalApi, cp as apexApi, cq as apiFetch, cr as authApi, cs as authStorageKey, ct as catalogApi, cu as clearAffiliateTokens, cv as clearTokens, cw as getAffiliateTokens, cx as getTokens, cy as membersApi, cz as messagesApi, cA as newIdempotencyKey, cB as offersApi, cC as onTokensCleared, cD as ordersApi, cE as paymentsApi, cF as productsApi, cG as promoCodesApi, cH as setAffiliateTokens, cI as setTokens, cJ as subscriptionsApi, cK as supportApi, cL as usersApi } from '../client-CMbSYUam.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';
|
package/dist/index/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import '../chunk/JSHO46VZ.js';
|
|
2
|
-
export { OFFER_BEATS_PROMO_NOTICE, restoreCartFromLink, startCartCapture, useSubscriptionIntakeFlow, validateResumedPromo } from '../chunk/
|
|
3
|
-
export { adoptCartId, capturePromoCode, cartId, clearPromoCode, fetchCartConfig, fetchResumedCart, postCartSnapshot, readCartToken, readPromoCode, resetCartConfigCache, resetCartId, stripCartToken } from '../chunk/
|
|
4
|
-
export { ADMIN_TAB_SEGMENTS, AFFILIATE_SUB_TAB_SEGMENTS, AcceptAdminInvitePage, AddressFields, AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod, adminTabFromPath, adminTabPath, affiliateSubTabFromPath, affiliateSubTabPath } from '../chunk/
|
|
2
|
+
export { OFFER_BEATS_PROMO_NOTICE, restoreCartFromLink, startCartCapture, useSubscriptionIntakeFlow, validateResumedPromo } from '../chunk/CDRUVUTJ.js';
|
|
3
|
+
export { adoptCartId, capturePromoCode, cartId, clearPromoCode, fetchCartConfig, fetchResumedCart, postCartSnapshot, readCartToken, readPromoCode, resetCartConfigCache, resetCartId, stripCartToken } from '../chunk/WTHAR2P2.js';
|
|
4
|
+
export { ADMIN_TAB_SEGMENTS, AFFILIATE_SUB_TAB_SEGMENTS, AcceptAdminInvitePage, AddressFields, AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod, adminTabFromPath, adminTabPath, affiliateSubTabFromPath, affiliateSubTabPath } from '../chunk/UZ2K7HBG.js';
|
|
5
5
|
export { EmbedApiError2 as ApexV2ApiError, EmbedApiError, createEmbedApiClient, disqualificationReasonText, disqualifiedDrugIds, qualifiedDrugIds } from '../chunk/LZWA44KD.js';
|
|
6
|
-
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/
|
|
7
|
-
export { adoptFunnelSessionId, captureAuthHeader, fetchFunnelConfig, fetchResumedDraft, funnelSessionId, peekFunnelSessionId, postFunnelEvent, readResumeToken, resetFunnelConfigCache, saveFunnelDraft, stripResumeToken } from '../chunk/
|
|
6
|
+
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/VGF2LLAD.js';
|
|
7
|
+
export { adoptFunnelSessionId, captureAuthHeader, fetchFunnelConfig, fetchResumedDraft, funnelSessionId, peekFunnelSessionId, postFunnelEvent, readResumeToken, resetFunnelConfigCache, saveFunnelDraft, stripResumeToken } from '../chunk/OOMMZESR.js';
|
|
8
8
|
export { PrimitivesProvider, usePrimitives } from '../chunk/67KHO66G.js';
|
|
9
9
|
export { defaultPrimitives } from '../chunk/EXXI5Y7I.js';
|
|
10
10
|
import '../chunk/NVRAOAVV.js';
|
|
11
|
-
export { affiliateAuth_default as affiliateAuthStore, auth_default as authStore, cart_default as cartStore, medication_default as medicationStore } from '../chunk/
|
|
12
|
-
export { ADMIN_ROLES, ApiError, SUPPORT_ATTACHMENT_MAX_BYTES, SUPPORT_ATTACHMENT_MIME_TYPES, addressesApi, adminAffiliatesApi, adminApi, adminCatalogApi, adminCatalogConversionApi, adminProductPharmaciesApi, affiliateAuthStorageKey, affiliatePortalApi, apexApi, apiFetch, authApi, authStorageKey, captureAffiliateRef, catalogApi, clearAffiliateRef, clearAffiliateTokens, clearTokens, getAffiliateTokens, getTokens, membersApi, messagesApi, newIdempotencyKey, offersApi, onTokensCleared, ordersApi, paymentsApi, productsApi, promoCodesApi, readAffiliateRef, setAffiliateTokens, setTokens, subscriptionsApi, supportApi, usersApi } from '../chunk/
|
|
11
|
+
export { affiliateAuth_default as affiliateAuthStore, auth_default as authStore, cart_default as cartStore, medication_default as medicationStore } from '../chunk/GJSE37VN.js';
|
|
12
|
+
export { ADMIN_ROLES, ApiError, SUPPORT_ATTACHMENT_MAX_BYTES, SUPPORT_ATTACHMENT_MIME_TYPES, addressesApi, adminAffiliatesApi, adminApi, adminCatalogApi, adminCatalogConversionApi, adminProductPharmaciesApi, affiliateAuthStorageKey, affiliatePortalApi, apexApi, apiFetch, authApi, authStorageKey, captureAffiliateRef, catalogApi, clearAffiliateRef, clearAffiliateTokens, clearTokens, getAffiliateTokens, getTokens, membersApi, messagesApi, newIdempotencyKey, offersApi, onTokensCleared, ordersApi, paymentsApi, productsApi, promoCodesApi, readAffiliateRef, setAffiliateTokens, setTokens, subscriptionsApi, supportApi, usersApi } from '../chunk/HEQLEGHI.js';
|
|
13
13
|
export { configure, getConfig } from '../chunk/2IFPDU4D.js';
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
15
15
|
//# sourceMappingURL=index.js.map
|
package/dist/index/index.jsx
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
startCartCapture,
|
|
6
6
|
useSubscriptionIntakeFlow,
|
|
7
7
|
validateResumedPromo
|
|
8
|
-
} from "../chunk/
|
|
8
|
+
} from "../chunk/LA6F37YV.jsx";
|
|
9
9
|
import {
|
|
10
10
|
adoptCartId,
|
|
11
11
|
capturePromoCode,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
resetCartConfigCache,
|
|
20
20
|
resetCartId,
|
|
21
21
|
stripCartToken
|
|
22
|
-
} from "../chunk/
|
|
22
|
+
} from "../chunk/33BDC6MT.jsx";
|
|
23
23
|
import {
|
|
24
24
|
ADMIN_TAB_SEGMENTS,
|
|
25
25
|
AFFILIATE_SUB_TAB_SEGMENTS,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
adminTabPath,
|
|
49
49
|
affiliateSubTabFromPath,
|
|
50
50
|
affiliateSubTabPath
|
|
51
|
-
} from "../chunk/
|
|
51
|
+
} from "../chunk/TFJKTKZ3.jsx";
|
|
52
52
|
import {
|
|
53
53
|
EmbedApiError,
|
|
54
54
|
EmbedApiError2,
|
|
@@ -184,7 +184,7 @@ import {
|
|
|
184
184
|
useUpdatePaymentMethodFlow,
|
|
185
185
|
validateAddress,
|
|
186
186
|
visibleWarnings
|
|
187
|
-
} from "../chunk/
|
|
187
|
+
} from "../chunk/OZHJ5IGL.jsx";
|
|
188
188
|
import {
|
|
189
189
|
adoptFunnelSessionId,
|
|
190
190
|
captureAuthHeader,
|
|
@@ -197,7 +197,7 @@ import {
|
|
|
197
197
|
resetFunnelConfigCache,
|
|
198
198
|
saveFunnelDraft,
|
|
199
199
|
stripResumeToken
|
|
200
|
-
} from "../chunk/
|
|
200
|
+
} from "../chunk/EED3KNR7.jsx";
|
|
201
201
|
import {
|
|
202
202
|
PrimitivesProvider,
|
|
203
203
|
usePrimitives
|
|
@@ -211,7 +211,7 @@ import {
|
|
|
211
211
|
auth_default,
|
|
212
212
|
cart_default,
|
|
213
213
|
medication_default
|
|
214
|
-
} from "../chunk/
|
|
214
|
+
} from "../chunk/ZWAZNB4Y.jsx";
|
|
215
215
|
import {
|
|
216
216
|
ADMIN_ROLES,
|
|
217
217
|
ApiError,
|
|
@@ -251,7 +251,7 @@ import {
|
|
|
251
251
|
subscriptionsApi,
|
|
252
252
|
supportApi,
|
|
253
253
|
usersApi
|
|
254
|
-
} from "../chunk/
|
|
254
|
+
} from "../chunk/X6WJQ47H.jsx";
|
|
255
255
|
import {
|
|
256
256
|
configure,
|
|
257
257
|
getConfig
|
package/dist/pages/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as solid_js from 'solid-js';
|
|
|
2
2
|
import { JSX } from 'solid-js';
|
|
3
3
|
import { U as UseSurveyV2FlowOptions } from '../surveyV2-BgQHK0GE.js';
|
|
4
4
|
import { V2SubmitResult, PatientInfo, V2DrugResult } from '@apextelemed/survey-core';
|
|
5
|
-
import { I as AdminLifecycleBucket, V as AdminProduct } from '../client-
|
|
5
|
+
import { I as AdminLifecycleBucket, V as AdminProduct } from '../client-CMbSYUam.js';
|
|
6
6
|
import '@apextelemed/survey-solid';
|
|
7
7
|
|
|
8
8
|
interface SurveyPageProps {
|
package/dist/pages/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { ADMIN_TAB_SEGMENTS, AFFILIATE_SUB_TAB_SEGMENTS, AcceptAdminInvitePage, AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod, adminTabFromPath, adminTabPath, affiliateSubTabFromPath, affiliateSubTabPath } from '../chunk/
|
|
1
|
+
export { ADMIN_TAB_SEGMENTS, AFFILIATE_SUB_TAB_SEGMENTS, AcceptAdminInvitePage, AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod, adminTabFromPath, adminTabPath, affiliateSubTabFromPath, affiliateSubTabPath } from '../chunk/UZ2K7HBG.js';
|
|
2
2
|
import '../chunk/LZWA44KD.js';
|
|
3
|
-
import '../chunk/
|
|
4
|
-
import '../chunk/
|
|
3
|
+
import '../chunk/VGF2LLAD.js';
|
|
4
|
+
import '../chunk/OOMMZESR.js';
|
|
5
5
|
import '../chunk/67KHO66G.js';
|
|
6
|
-
import '../chunk/
|
|
7
|
-
import '../chunk/
|
|
6
|
+
import '../chunk/GJSE37VN.js';
|
|
7
|
+
import '../chunk/HEQLEGHI.js';
|
|
8
8
|
import '../chunk/2IFPDU4D.js';
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
package/dist/pages/index.jsx
CHANGED
|
@@ -25,13 +25,13 @@ import {
|
|
|
25
25
|
adminTabPath,
|
|
26
26
|
affiliateSubTabFromPath,
|
|
27
27
|
affiliateSubTabPath
|
|
28
|
-
} from "../chunk/
|
|
28
|
+
} from "../chunk/TFJKTKZ3.jsx";
|
|
29
29
|
import "../chunk/UZCST66N.jsx";
|
|
30
|
-
import "../chunk/
|
|
31
|
-
import "../chunk/
|
|
30
|
+
import "../chunk/OZHJ5IGL.jsx";
|
|
31
|
+
import "../chunk/EED3KNR7.jsx";
|
|
32
32
|
import "../chunk/J63XPQP4.jsx";
|
|
33
|
-
import "../chunk/
|
|
34
|
-
import "../chunk/
|
|
33
|
+
import "../chunk/ZWAZNB4Y.jsx";
|
|
34
|
+
import "../chunk/X6WJQ47H.jsx";
|
|
35
35
|
import "../chunk/QVZ7BRNO.jsx";
|
|
36
36
|
export {
|
|
37
37
|
ADMIN_TAB_SEGMENTS,
|
package/dist/stores/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as solid_js from 'solid-js';
|
|
2
|
-
import {
|
|
2
|
+
import { aE as AuthTokens, cg as User, bQ as RegisterPayload, bP as RegisterAndSubscribePayload, al as AffiliateAuthTokens, ak as Affiliate, av as AffiliateRegisterInput } from '../client-CMbSYUam.js';
|
|
3
3
|
export { A as AppliedPromoCode, C as CartItem, c as cartStore } from '../cart-o6DpAu5y.js';
|
|
4
4
|
|
|
5
5
|
declare const authStore: {
|
package/dist/stores/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../chunk/NVRAOAVV.js';
|
|
2
|
-
export { affiliateAuth_default as affiliateAuthStore, auth_default as authStore, cart_default as cartStore, medication_default as medicationStore } from '../chunk/
|
|
3
|
-
import '../chunk/
|
|
2
|
+
export { affiliateAuth_default as affiliateAuthStore, auth_default as authStore, cart_default as cartStore, medication_default as medicationStore } from '../chunk/GJSE37VN.js';
|
|
3
|
+
import '../chunk/HEQLEGHI.js';
|
|
4
4
|
import '../chunk/2IFPDU4D.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/dist/stores/index.jsx
CHANGED
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
auth_default,
|
|
5
5
|
cart_default,
|
|
6
6
|
medication_default
|
|
7
|
-
} from "../chunk/
|
|
8
|
-
import "../chunk/
|
|
7
|
+
} from "../chunk/ZWAZNB4Y.jsx";
|
|
8
|
+
import "../chunk/X6WJQ47H.jsx";
|
|
9
9
|
import "../chunk/QVZ7BRNO.jsx";
|
|
10
10
|
export {
|
|
11
11
|
affiliateAuth_default as affiliateAuthStore,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apextelemed/partner-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0-dev.61",
|
|
4
4
|
"description": "Shared frontend library for telehealth patient portals (api client, stores, headless flows).",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"repository": {
|